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
6
votes
1 answer

Spring Batch step without chunk processing

I have a job step that reads from the database and writes the output to a flat file and creates a report. If the step fails I want it to do the restart, processing all over from the top. I don’t want to incorporate any recovery into this step. What…
6
votes
3 answers

Why does the Processing `fill()` with alpha never completely fill?

Let's say we have the following code: void setup() { background(0); size(200, 200); fill(255); rect(75, 75, 50, 50); } void draw() { fill(0, 2); rect(0, 0, width, height); } Even after waiting 'forever,' the white…
j6m8
  • 2,261
  • 2
  • 26
  • 34
6
votes
2 answers

Multi Threading Java

In my program I essentially have a method similar to: for (int x=0; x
user1939991
  • 187
  • 4
  • 14
6
votes
3 answers

Is a "rolling" FFT possible and could it be of use?

Lately I have been experimenting with audio and FFTs, specifically the Minim library in Processing (basically Java, not that its particularly important for this question). What I have come to understand is that with a buffer/sample size N and sample…
AndrewH
  • 3,418
  • 2
  • 15
  • 27
6
votes
3 answers

Create more than one window of a single sketch in Processing

How to create more than one window of a single sketch in Processing? Actually I want to detect and track a particular color (through webcam) in one window and display the detected co-ordinates as a point in another window.Till now I'm able to…
Saikat
  • 1,209
  • 3
  • 16
  • 30
6
votes
1 answer

Pass an Array to a Constructor without declaring it?

In processing, I have defined the following class: class SomeClass { SomeClass(int[] someArray) { println(someArray); } } Now I would like to create an instance of that class, but I am having trouble getting the array passed to the…
Lars Ebert
  • 3,487
  • 2
  • 24
  • 46
6
votes
2 answers

Multiple serial values from arduino to processing?

I have a small problem. I am passing information from an arduino attached 3 axis accelerometer + 3 axis magnetometer + compass heading. These are scaled to midi ranges (0-127). ARDUINO: This is passed in a serial print with a format like…
6
votes
3 answers

How do I append text to a csv/txt file in Processing?

I use this simple code to write a few strings to the file called "example.csv", but each time I run the program, it overwrites the existing data in the file. Is there any way to append the text to it? void setup(){ PrintWriter output =…
Faridoon
  • 154
  • 2
  • 4
  • 8
6
votes
2 answers

How to setup serial communication in Processing to /dev/rfcomm0

I am trying to perform serial communication on between Ubuntu 12.04 and a JY-MCU bluetooth serial module connected to an Arduino. I have created this configuration in /etc/bluetooth/rfcomm.conf rfcomm0 { # # Automatically bind the device at…
gratefulfrog
  • 171
  • 1
  • 1
  • 8
6
votes
4 answers

Dominant "color" of an image

I have the following image: What I want to do is "id" the individual strips based on their dominant color. What is the best approach to do this? What I've done is used the image's value (HSV) and make a distribution on that value's occurrence. The…
5
votes
6 answers

Sorting ArrayList of objects by float

I have an arraylist of stockprices each stockprices has a name, stock exchange, price and date. I am trying to organise the arraylist by prices which are floats. Any pointers would be appreciated.
user1235720
5
votes
1 answer

Processing performance in android

I would like to know how are the performances of Processing sketches in Android. Here is the link for more info about Processing-Android : http://wiki.processing.org/w/Android#Instructions I don't really know at which level lies Processing in…
Jecimi
  • 4,113
  • 7
  • 31
  • 40
5
votes
1 answer

Data analysis for inconsistent string formatting

I have this task that I've been working on, but am having extreme misgivings about my methodology. So the problem is that I have a ton of excel files that are formatted strangely (and not consistently) and I need to extract certain fields for each…
Oliver
  • 2,182
  • 5
  • 24
  • 31
5
votes
1 answer

Firmata with Arduino Mega 1280, can't read all input pins

I got an Arduino Mega 1280 and want to communicate with it via Firmata. That sounds easy... So my problem: If I use the StandardFirmata Firmware for the Arduino, which is included in Arduino 1.0, I can set output Pins, and send a signal to them…
nbuechi
  • 229
  • 4
  • 20
5
votes
2 answers

Twitter stream - location AND keywords

I am using the 'Twitter4j' library and I am just wondering if it is at all possible to return tweets within a location AND contain a certain keyword. I notice that on the official Twitter documentation it mentions this: Bounding boxes are logical…
ponens
  • 85
  • 1
  • 7