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
1
vote
1 answer

How to avoid object overlapping and overtaking?

I am trying to draw circles from same y coordinate. and creating arrays for xPos. I put the speed and xPos random, how to make sure they are not overlapping and the one behind it match the speed to the front one so it wouldn't overtake? I have…
user18588015
1
vote
2 answers

How to print the contents of an instance in java or pde?

class bouncingBall(): def __init__(self, bounce, window, position): self.bounce = bounce self.window = window self.position = position ball = bouncingBall(0.35, 1.5, 0.75) print(ball) # <__main__.bouncingBall object at…
Gunty
  • 1,841
  • 1
  • 15
  • 27
1
vote
1 answer

No library found for processing.io error error when running Processing code in raspberrypi

I am trying to run a Sketch program using Processing 4.0. The code is from FreeNove raspberrypi kit. I am getting this error No library found for processing.io No library found for processing.io No library found for processing.io Libraries must be…
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
1
vote
1 answer

Error in p5.js: "pushMatrix() not used, see push()"

Every time I run my code, it gives me an error: p5.js says: An error with message "pushMatrix() not used, see push()" occured inside the p5js library when pushMatrix was called (on line 175 in sketch.js [/sketch.js:175:13]) If not stated otherwise,…
Voxel
  • 64
  • 9
1
vote
1 answer

How to do random generation of barriers for car collision game

How do I create a random car barrier for my game? I have this top-down car game that I need to make. This game aims to make the car move up and down (on the y-axis) to avoid the barriers, while the barriers are moving toward the car (on the x-axis).…
Haadi Khan
  • 21
  • 1
1
vote
2 answers

Grid Not Returning a Value in Processing 3

I'm trying to make a minesweeper clone using Processing's java. I have managed to create a grid and each tile has a randomized value assigned to it, but for some reason, only the top left tile can be clicked, the rest of the tiles do not return a…
1
vote
2 answers

Histogram based on image as vector graphic

I would like to transform histograms based on images to vector graphics. This could be a start: function preload() { img =…
Anna_B
  • 820
  • 1
  • 4
  • 23
1
vote
1 answer

Processing exported application canvas size differs from ide launched application

I have a simple Processing 3 application I just migrated to Processing 4. The old version had some global variables fine tuned for 1920x1080 displays, so while porting I decided to make it more dynamic and made so that those global variables would…
CrystalSpider
  • 377
  • 7
  • 16
1
vote
2 answers

How to export to a runnable jar with Proccessing (Eclipse)

I have tried to export my processing applet to a runnable jar file from eclipse (which I am using to code it) and it exports successfully but when opened just causes a blank (grey) screen. If I run it with command prompt I get this…
turke1034
  • 68
  • 1
  • 7
1
vote
1 answer

Processing: how to make box() appear solid (non-transparent) in 3d mode

I'm trying to create layers of 3d boxes in Processing. I want them to appear solid, so that you can't see the boxes "behind" other boxes, but the way they're displaying makes them seem transparent; you can see the stroke of boxes behind other boxes.…
Noah
  • 13
  • 3
1
vote
0 answers

Using 3D Layers in Processing

I'm working on a method of visualizing solids of revolution in 3D using Processing. Currently, I'm able to draw all 3 axes, revolving around the Y as well as the shape I want to revolve around one of the axes. I want to clear the axes from the…
sudhan
  • 48
  • 3
1
vote
1 answer

How can I change the movement of the ball on pressing any keys from the keyboard in processing?

Below is the code I am working with in processing. I want the code to be edited to change the movement of the ellipse on the canvas on pressing any key from the keyboard. float circleX = 0; float circleY = 0; float…
oden
  • 37
  • 4
1
vote
1 answer

How to change the color of ball everytime it strike the wall, in processing? My code is as below

This is the code I have. And in next step how can I make effect on the bouncing ball from keyboard keys. float circleX = 0; float circleY = 0; float xSpeed = 2.5; float ySpeed = 2; void setup() { size(500, 500); } void draw() { …
oden
  • 37
  • 4
1
vote
1 answer

Processing can't access PShape array

I'm afraid I have a problem with a "NullPointerException". I'm writing a Processing (v4) Sketch, which should load multiple svg files from a folder, into a PShape Array. Initializing the array works fine, giving it a length works fine but somehow…
dorndalf
  • 21
  • 3
1
vote
1 answer

Move around an image in processing

Is it possible to move an image (or image object) without clearing the whole background? I wish to create an app that allows the user to "paint", using a device that is not the mouse. I would like to have a cursor to follow the users movement with…
Ellen S
  • 1,047
  • 1
  • 13
  • 18