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

Long syllables for Text to speech in Processing/java

I'm making a test Text to Speech program using Processing. Right now it basically works as a piano for syllables of the alphabet, but when I hold down, for example, the "u" key, it just loops the audio file. I want the program to draw out the…
Andy Lin
  • 21
  • 1
2
votes
1 answer

Processing with tuio

hi i am new to processing and i'm trying to figure out how to make the sphere move from left to right using a marker instead of the mouse. can you help me please? i can use the marker to shoot but i cant move the sphere by shooting import…
2
votes
0 answers

Get the elements of subsets in Balanced Partition using Backpointers

I want to implement the Balanced Partition probelm and get the elements of the subsets using backpointers. I have a question about Backpointers: With the help of MIT's Dynamic Programming Practice Problems Nr. 7 and this example code, I managed to…
MrWeix
  • 397
  • 1
  • 6
  • 17
2
votes
2 answers

Java (Processing 1.5.1): Fluent interface @ multilevel inheritance via generics

I try to implement a fluent interface in my 2D game engine. Simplified example of my implementation: public class Sprite { protected float x = 0.0; protected float y = 0.0; public T setPosition(float x, float y) { this.x =…
2
votes
5 answers

Intersecting Circle Overlap

I am trying to do a theoretically simple effect. For example, I have two white circles bouncing around the window. When they intersect, I want the parts of the circle which are intersecting to be black while the rest of the circles remain white,…
el.steve.o
  • 41
  • 4
2
votes
3 answers

“Rotate” and “translate” in processing give me headaches

As a small homework to get into Processing, I had to write some code to get the following: Using public void setup() { size(300,200); noFill(); rect(100, 20, 40, 80); ellipseMode(CENTER); fill(#000000); ellipse(width/2, height/2,…
PattaFeuFeu
  • 1,828
  • 3
  • 19
  • 24
2
votes
1 answer

How to run and display processing code (currently in part of the document.body) in an html canvas?

NOTE: I know I can import .pde files but I need to run code on screen so I will not be using this. My three following attempts failed. I do not know which one was closer to achieving and I do not prefer one as long as it produces desired result.…
2
votes
1 answer

Processing - error

Possible Duplicate: Error:Unable to resolve target ‘android-2’ I'm using Processing in android mode. I always get the following error which I have no clue on how to fix. I have the latest version of android installed (16). BUILD FAILED C:\Program…
mrk
  • 3,061
  • 1
  • 29
  • 34
2
votes
1 answer

3D object rotation around its center in Processing

I'm trying to rotate three-faced object around its center via X axis. I'm building single face's center at 0,0. And I can rotate it around its center, but when I try to rotate the "whole" object, it doesn't work anymore. What should I do? float a =…
2
votes
3 answers

KeyTyped key not showing key

I am trying to convert from processing to processingjs and have something I just can't understand. In processing the following code returns whichever letter you type in, though in processingjs it just comes back with the keycode value but I need…
2
votes
3 answers

Calculating the rotation angle to follow a line in Processing

I have a random line being drawn, and I want to trace along the line with a Letter, V in this case. I would like the bottom point of the V to rotate and follow the direction of the line no matter what angle or direction the line is drawn. But I'm…
Lance
  • 23
  • 3
2
votes
1 answer

Processing and C# serial reading garbage/junk values from Arduino

I've searched around but can't find a solution to this problem. I'm using the simplest example I can think of to test this. This is the processing Code: void setup() { Serial.begin(9600); } void loop() { for(int i =48;i<51;i++) { …
blooop
  • 409
  • 4
  • 15
2
votes
1 answer

I have two ArrayLists in Processing, both of which I need to send to Arduino, and have the Arduino store them in its own arrays

I have the following sketch written in Processing, which scans an image, and stores the coordinates of each black pixel into two ArrayLists - xList, and yList. It currently then prints out the coordinates, but now I need to send these ArrayLists to…
2
votes
1 answer

How to destroy Processing PApplet without calling exit()?

I working on a Processing program that runs in to different windows. On holds the controllers, thats the main PApplet, the other one is running some OpenGL and is a subclass of PApplet as well. Creating an instance of the OpenGL window isn't too…
codingjoe
  • 1,210
  • 15
  • 32
2
votes
1 answer

How to create a simple side scroller game

I'm still pretty new to game programming and any tutorial that I have worked with stuck to only games with the initial screen. I want to start creating my own games but there are a few things that I still need to learn. One of them is how to create…
D34thSt4lker
  • 447
  • 1
  • 5
  • 12