Questions tagged [processing]

Processing is an open source programming language and environment for people who want to create images, animations, interactions, and games.

The processing tag is misleading and leads to misunderstandings and even closure votes, because of the seemingly missing language tag. It is strongly recommended to tag questions additionally with a language tag.

But note Processing is not the same as Java.

Processing refers to the language built on top of Java and the minimal IDE it ships with. It is free and open-source, runs on Linux, Mac OS X, and Windows, and can output for screens, print, 3D packages and CNC printing.

The language simplifies a lot of complex concepts and eases the entry of designers, artists and non-programmers to the world of programming.

Over the years it was used to produce a number of astonishing projects ranging from data visualization, to physical computing , games, 3D, sound, live performance, and more.

Due to its vibrant community, Processing not only enjoys a contribution of over 100 libraries, but it is also present on major mobile platforms, such as Android and iOS.

There are online communities for sharing Processing content, like OpenProcessing.

Some websites even allow users to learn and use Processing directly in the browser, like the Flash-driven SketchPatch and the JavaScript-driven Sketchpad and p5.js (pure JavaScript).

There are also Processing ports to the following languages:

Advanced users are not constrained to the Processing IDE; sketches can be run from the command line, and projects can be set up to build and run directly from editors:

6836 questions
1
vote
1 answer

Why is my rotation quirky in processing?

I tried to write vertical text on my graphical program created in Processing with this code in my draw() function. // Translate to where I want text to be. translate(20., 30.); // Center align text textAlign(CENTER); // Rotate text-to-be…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
1
vote
1 answer

How can I return to the original image after change the color pixels on my image in processing?

In the program below, I try to change the pixel colors form a image with the click of the mouse, however, I'm trying to return to the original image with the second click but I haven't been able to find the rigth argument to do it... PImage…
mcs12
  • 15
  • 3
1
vote
2 answers

Load multiple images in Processing

I would like to load and draw multiple/all images from a directory in Processing. I cant find a way to extend the one image example: PImage a; void setup() { size(800,800); background(127); a = loadImage("a/1.jpg"); noLoop(); } void…
digit
  • 1,513
  • 5
  • 29
  • 49
1
vote
1 answer

processing - mouseOver on objects

I'm trying to figure out how to detect in processing / processing js when the mouse is over a certain object on screen. In this case, I am drawing lines. It seems like processing can't attach a "listener" to an object, so I would have to do this…
mheavers
  • 29,530
  • 58
  • 194
  • 315
1
vote
1 answer

Configuring Jython, Processing and OpenGL with PyDev

I am experimenting with the idea of writing Processing apps with Jython on MacOSX Snow Leopard using Eclipse/PyDev. Simple sketches are working pretty well, but when I attempt to use the OpenGL APIs the app crashes and throws this error: Exception…
JeremyFromEarth
  • 14,344
  • 4
  • 33
  • 47
1
vote
5 answers

Looking for an elegant way to get ±1-sequence in processing

I need an alternate sequence like 1, -1, 1, -1... asf. First I used if-statements for it, but it's dumb. Then I tried something like: int n = 1; ... do{ n = 0 + ( n * (-1)); } while(blabla) It's ok, but I have to store n value from iteration to…
Daria
  • 168
  • 1
  • 8
1
vote
2 answers

Object Specifc Behaviour in an If Clause

I am working on a game that requires resolution actions depending on the object a ball collides with. A lot of code within the resolution method applies to all of the different types of objects that could be hit but some is also specific to a…
james_dean
  • 1,477
  • 6
  • 26
  • 37
1
vote
1 answer

cannot get processing script to run

I'm doing a Processing.js tutorial found here:http://processingjs.org/articles/jsQuickStart.html When I load my document into the browser I get two errors: uncaught exception: called Processing constructor without passing canvas element reference or…
dopatraman
  • 13,416
  • 29
  • 90
  • 154
1
vote
1 answer

Unpredictable behaviour with Processing

I've just started creating an application in Processing, and I'm getting unpredictable behaviour when I place a PApplet object into a JFrame using BorderLayout.CENTER. The width of the PApplet is 100 less than the width and height of the JFrame. On…
BlackBox
  • 2,223
  • 1
  • 21
  • 37
1
vote
4 answers

My copy of "Processing" does not have the "processing.serial" library

I have searched for weeks online for this library. It is suppose to be built into the core but no matter what I do it can never find the processing.serial library. Every code I try to run gives me this error msg: The package "processing.serial"…
Randy McBride
  • 11
  • 1
  • 2
1
vote
1 answer

How to add a library into Processing from Eclipse platform?

I installed the Processing plugin for Eclipse. it works fine. But then i copied the folder gifAnimation into C:\Program Files\eclipse\plugins\processing.plugin.core_0.2.5.1\Resources\libraries. All the other libraries are there. but "import…
dinesh707
  • 12,106
  • 22
  • 84
  • 134
1
vote
1 answer

How to find the size of a view in a Eclipse plugin?

In my eclipse plugin I want to embed another frame. This frame should always have the same size as the view. So I want to find the current size of the view. But I couldn't find any method to do it. Any hints? This is how I embed the frame: public…
anon
1
vote
1 answer

Processing compile error caused by RxTx lib

I use processing to read from Arduino Serial. To do this i use the processing class Serial, but when i compile, i get this error: WARNING: RXTX Version mismatch Jar version = RXTX-2.2pre1 native lib Version = RXTX-2.2pre2 Invalid memory access of…
JBerta93
  • 699
  • 3
  • 16
  • 27
1
vote
1 answer

Video capture, Processing missing device

I have a video capture device via USB for mac, that i want to use in Processing. The device shows up in the USB Prober and I have additional info from the IORegistryExplorer if needed. In Processing, the available devices array lists as follows: 0…
user825608
  • 11
  • 3
1
vote
1 answer

Triangles with texture in processing

I have a code in processing which contains points moving randomly. Those points seek the ball and start triangulate (shaping triangles). I want to display on them a folder of sequences images with opacity. So every time that an triangle is shaped…
mal.vi
  • 21
  • 3