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

Why does this image not display correctly when I put it through my HTTP server?

I wrote the following HTTP server: import processing.net.*; import java.io.FileInputStream; import javax.activation.MimetypesFileTypeMap; Client client = null; Server server = null; MimetypesFileTypeMap mimeMap = new MimetypesFileTypeMap(); void…
GKFX
  • 1,386
  • 1
  • 11
  • 30
2
votes
1 answer

generation of 3D random points on the surface of a cube

I'm trying to randomly and uniformly generate points on a cube surface in processing. I'm trying to make an animation so I'd need the x, y and z final position of the points. Any suggestions? Thanks.
tony danza
  • 306
  • 7
  • 22
2
votes
4 answers

"out of memory" in processing with lots of images

I am trying to run a sketch that is supposed to show images (png´s, between 100kb and 1,5mb in size, 55.4mb total) in a coverflow animation. it works with about 10 images, but using more I get a out of memory error. I am loading the images file…
Kris
  • 768
  • 1
  • 8
  • 19
2
votes
1 answer

Java function that gets called every frame

I was wondering if there was a function like void draw() which Processing programming language uses that gets called every frame. Or even just a function that loops infinitely when it gets called but only runs through it every time there is a new…
semicolon
  • 2,530
  • 27
  • 37
2
votes
1 answer

Processing: send and receive custom events

is it possible to create simple custom events in Processing similar to as3? dispatch(new Event("HEY")); myObject.addEventListener("HEY",callBack);
2
votes
2 answers

SVG alternative to display complex vector files in Processing.org with OPENGL or P3D libraries

I am trying to display SVG files in 3D with Processing.org using either the OPENGL or P3D libraries. The issue, documented here (and other places: 1, 2, and an undesirable library hack), is that these renderers to not support complex shapes (those…
ow3n
  • 5,974
  • 4
  • 53
  • 51
2
votes
2 answers

Need help moving paddle in Breakout game for Java

I am making the game Breakout for my AP Computer Science class. I have done most of it, but I do not know how to use the arrow keys on a keyboard to move the paddle left and right. Can I get some help? I would appreciate it. Here is what I have so…
2
votes
1 answer

JMF with Processing - audio visualizer

I have this awesome audio visualizer created with Processing 2.0a5 with the minim library, which uses fft to analyze the audio data. import ddf.minim.*; import ddf.minim.analysis.*; Minim minim; AudioPlayer song; FFT fft; int col=0; // color,…
Dante Cullari
  • 769
  • 13
  • 21
2
votes
2 answers

Drawing 3D text in Processing

I'm working on a 3D scene in Java using the Processing API. It's a force-directed graph layout algorithm (although that isn't too important). I've got all the graph drawing done -- the nodes, edges, layout, etc. are looking good. Each node on the…
Peter
  • 1,349
  • 11
  • 21
2
votes
1 answer

get frenquencies in Processing with Minim

I try to get frequencies from microphone using Processing. I have mix two examples from the doc, but "highest" is not really in Hz (a is 440 Hz). Do you know how to have something better than this ? import ddf.minim.*; import…
benoît
  • 1,473
  • 3
  • 13
  • 31
2
votes
2 answers

WiFly shield + Arduino + auto-connect issue

I'm using the WiFly shield with Arduino, and everything works fine: I upload my skecth to Arduino via USB, I connect a 9V battery, I disconnect the USB, and the wifi module transmits everything fine (it transmits data to my web server). When the…
Francesco
  • 24,839
  • 29
  • 105
  • 152
2
votes
1 answer

Point-wise image processing - Histogram Equalization (Processing)

I'm really confused with this technique.. I know that a histogram is the frequency for every value (I am working on gray-scale images) and I've produced a method to do that: int[] populateHist (PImage x) { x.loadPixels(); int[] out = new…
AuthenticReplica
  • 870
  • 15
  • 39
2
votes
1 answer

How to video out java through DVI/HDMI?

For a project I have to create a music visualizer in java (I've decided on using www.processing.org to create the visuals) and then output it using DVI/HDMI to a spartan-6 board. I haven't been able to find much out there. I'm fairly early in the…
hutherca
  • 35
  • 5
1
vote
2 answers

access cleverbot with java

I would like to get the answers that cleverbot can give into java (processing actually, a nice java dialect). I looked in the html and the function that is suppose to be in one of the javascript files should be named…
clankill3r
  • 9,146
  • 20
  • 70
  • 126
1
vote
1 answer

Lag behaviour for mousedrag()?

I have a simple processing sketch (you can post the code and observe the behavior here) int value = 0; void setup() { size(480, 120); } void draw() { fill(value); background(#ffffff); } void mouseDragged()…
yayu
  • 7,758
  • 17
  • 54
  • 86