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
79
votes
5 answers

Which language uses .pde extension?

While searching for an implementation of the Barnsley's Fern fractal I came across a implementation that has .pde extension. Which programming language uses this extension? Implementation Page
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241
59
votes
8 answers

Empty an array in Java / processing

Other than looping through each element in an array and setting each one to null, is there a native function in Java / processing to simply empty an array (or destroy it, to be able to redeclare it as a new array)?
ina
  • 19,167
  • 39
  • 122
  • 201
47
votes
1 answer

openFrameworks vs Processing

I have been reading a lot about openFrameworks and Processing, But still can't make the distinction other than one is in C++ and the other in Java. Can someone tell me which is for what exactly?
Hossein
  • 40,161
  • 57
  • 141
  • 175
41
votes
2 answers

Calling awt Frame methods from subclass

This question is about Frames, Java and Processing. This questions sounds pretty convoluted but its really not. I'll try keep this to a simple minimum. I'm creating a small ball in a maze game to get my head around physics and rendering. It's been a…
OVERTONE
  • 11,797
  • 20
  • 71
  • 87
31
votes
2 answers

How to re-order units based on their degree of desirable neighborhood ? (in Processing)

I would need help to implement an algorithm allowing the generation of building plans, that I've recently stumbled on while reading Professor Kostas Terzidis' latest publication: Permutation Design: Buildings, Texts and Contexts…
solub
  • 1,291
  • 17
  • 40
31
votes
5 answers

Value Remapping

Processing has a great function I use all the time: map(value, low1, high1, low2, high2) http://processing.org/reference/map_.html It remaps value (that has an expected range of low1 to high1) into a target range of low2 to high2). I want to…
ack
  • 14,285
  • 22
  • 55
  • 73
30
votes
6 answers

Equivalent of C# anonymous methods in Java?

In C# you can define delegates anonymously (even though they are nothing more than syntactic sugar). For example, I can do this: public string DoSomething(Func someDelegate) { // Do something involving someDelegate(string s) }…
Callum Rogers
  • 15,630
  • 17
  • 67
  • 90
25
votes
1 answer

Processing for Android, use of libraries

I have a Processing sketch that works fine on my computer. I'm now trying to get it running on my Android tablet using Processing Android mode. But I'm getting a lot of compiler errors saying "cannot find symbol". I'm using some Processing…
interstar
  • 26,048
  • 36
  • 112
  • 180
21
votes
5 answers

Remap or Map function in Javascript

Of late, most of my programming experience has been in Processing, and more recently I have been wanting to branch out a little deeper in to some JavaScript, since they are slightly related. I was just wondering, as my recent searching has turned…
user553149
21
votes
2 answers

How to filter FFT data (for audio visualisation)?

I was looking at this Web Audio API demo, part of this nice book If you look at the demo, the fft peaks fall smoothly. I'm trying to do same with Processing in Java mode using the minim library. I've looked at how this is done with the web audio api…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
20
votes
4 answers

How to save application options before exit?

I have made an application and i need to save some options before exit.(something like window dimension, ..., that will be written in a file.) The main frame has set this: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); How can I save options…
artaxerxe
  • 6,281
  • 21
  • 68
  • 106
19
votes
6 answers

How to use Processing 3 on IntelliJ IDEA?

I'd like to use the IntelliJ IDEA IDE to develop some app using Processing 3. How can I do that ? There are only tutorials on how to use Processing 2, but I think things have changed enough so that those tutorials do not work anymore. Thank you
ypicard
  • 3,593
  • 3
  • 20
  • 34
19
votes
5 answers

RGB to Philips Hue (HSB)

I'm making a musicplayer in Processing for an assignment for school. The Philips Hue lights will make some corresponding visual effects. I wanted to make the visuals kinda unique for each song. So I fetched the cover art (using LastFM API) of the…
timr
  • 6,668
  • 7
  • 47
  • 79
18
votes
4 answers

How to read serial port data from JavaScript

I connected an Arduino to my laptop using USB, and I can read the serial data using Processing. Is there any way to get this data in real time into a local webbrowser? For example, a text field that shows the value from the serial port? It does not…
Kokodoko
  • 26,167
  • 33
  • 120
  • 197
16
votes
4 answers

Facial Recognition in Java/Processing

I am doing a project that requires some facial recognition. I am attempting to find a Java implementation of this. I am not looking for facial detection. We are trying to do facial recognition through a live camera feed. Is there any way to…
user1202174
  • 177
  • 1
  • 1
  • 4
1
2 3
99 100