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

Get screen coordinates and size of OpenGL 3D Object after transformation

I have a couple of 3D objects in OpenGL in a processing sketch and I need to find out if the mouse is hovering over those objects. Since there is constant transformation I can't compare the original coordinates and size to the mouse position. I…
matteok
  • 2,189
  • 3
  • 30
  • 54
2
votes
2 answers

Why didn't draw concentric circles , but draw a growing circle?

I want to draw concentric circles , so I write the code below int radius = 30; void setup(){ size(1000,500); background(255,255,255); } void draw(){ ellipse(500,250,radius,radius); radius ++; } but the result are not concentric circles…
user2131116
  • 2,761
  • 6
  • 26
  • 33
2
votes
2 answers

How to change a GLSL shader parameter in Processing

I'm playing with shaders in openGL using Processing. I'm pretty noob at this and a bit lost. I found this thread that has an example on how to use GLSL shaders in Processing. I'm just trying to the change LightPosition parameter in the shader I'm…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
2
votes
2 answers

How can I embed a PApplet object into an ordinary applet?

I have a Processing sketch written in Java (not the Processing IDE) and I would like to embed it into a Java applet which can be run by a web browser's java plugin. Processing sketches are created by extending a class called PApplet which in turn…
Paul Siegel
  • 1,401
  • 13
  • 36
2
votes
1 answer

How to use Tahoma 8 bold on Processing.js?

Processing.js documentation does not explain how you use a web-safe font with bold style. I have already tried loadFont("tahoma_bold.ttf") placing a font I downloaded on the same folder as the script (/project/main.js and /project/tahoma_bold.ttf).…
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
2
votes
3 answers

How to put Processing in HTML page?

Is there a way to put Processing in an HTML page? Say I have a .pde file, and I want it to be on my HTML web page, how could I do that? (Processing is a kind of a graphics language.)
Ptr13
  • 553
  • 2
  • 6
  • 14
2
votes
1 answer

What is the filename of last saved frame using saveFrame()

In Processing, you can save a frame using saveFrame('output-####.png'). That will save the frame, name it output-0001.png, and place it in the sketch folder. The filename is always different because it follows a sequence, replacing the #### with the…
Sparragus
  • 883
  • 1
  • 9
  • 24
2
votes
1 answer

Processing - No library found

In Processing, I have the following error : No library found for bezierVertex Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' I am trying to run "exemplePPhys2D_geeknessrain.pde", that can be found…
Eric
  • 41
  • 2
  • 3
2
votes
3 answers

How do I use ArrayList.get()?

I am writing a program in Processing to make a 3-D scatterplot that one can rotate around in space using PeasyCam. Data is read in from a text file to an ArrayList of PVectors. The entire code is shown below. What I don't understand is that…
Noah
  • 223
  • 1
  • 13
2
votes
2 answers

Rotating camera around object axis with Peasycam

I'm trying to use Jonathan Feinberg's Peasycam library for processing to rotate the camera around the objects' Z axis. The documentation specifies for rotation is around subject, but not the object. This seems incredibly difficult to achieve. The…
geotheory
  • 22,624
  • 29
  • 119
  • 196
2
votes
2 answers

Processing 2.0 - Open file dialog

my goal is to select a file from a "file open" dialog box, read it and draw objects based on the content of the file. I found a way to open that dialog box (see skeleton code below), however the PDE program starts drawing BEFORE I can select the…
Eric
  • 41
  • 2
  • 3
2
votes
1 answer

Can't remove body in JS (box2d) processing

I'm using Box2d with processing (JS), and I have two bodies, I want one of them to disappear when collision, I tried to use "physics.removeBody(b1);" but unfortunately all the bodies I have in my world disappear! this is the code in the collision…
CodeLover
  • 155
  • 1
  • 16
2
votes
1 answer

How to listen for tcp changes using OscP5?

I'm using OscP5 in TCP mode, but I can't seem to figure out how to listen for changes like a TcpClient connecting or disconnecting. I instantiate oscP5 like so: tcp = new OscP5(this, TCP_PORT, OscP5.TCP); but anything related to TcpServer listeners…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
2
votes
3 answers

Java - Zoom / 3D Data Visualization Libraries

What are the best libraries/frameworks for doing 3D and/or Zoom interfaces in Java? I'd like to be able to do some prototyping of creating new types of interfaces for navigating within data and representing object graphs/relationships. Low and no…
MJLefevre
  • 815
  • 1
  • 8
  • 15
2
votes
2 answers

How to create an instance of a class from a set of classes?

I have a list of similar classes that are all children of the same abstract class. I also have an array of Booleans that should correspond to which class should be used. For example, I have a bunch of classes, named with the following convention:…
marisbest2
  • 1,346
  • 2
  • 17
  • 30