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

Why the exported to desktop (.exe) processing app with java classes can not run properly? My another project was exported without problems

I try to export my processing app as the "ready to use" application with exe launch file for desktop. My code is pretty simple. Proccessing code: //import io.itch.mgdsstudio.airfight.connecteddevices.*; private…
1
vote
0 answers

Is there a way to get the RowCount of a specific column in Processing?

I am trying to get the RowCount of a specific column in my .csv file. Table table; float temperature = 15; void setup() { size(displayWidth, 800); table = loadTable("data/wetterAppSentences.csv", "header"); if (temperature <= 7){ TableRow…
1
vote
1 answer

Different rendering in the simulation or using saveFrame() using Processing in Intellij

After many years with Processing IDE, I missed Intellij IDEA too much so I went back for it but Processing stays on :wink: However, the shapes drawn are way less sharp than in the real PDE, for example, a simple circle is rendered differently using…
Grusat
  • 43
  • 8
1
vote
1 answer

Image displaying using Arduino- Processing connection and ADXL345 sensor

I am working on an artistic project that includes an ADXL345 sensor (accelerometer), Arduino Uno R3 Board, Arduino IDE 2.0.3 and Processing 4.1.2. I want Processing to display images randomly and continuously every time the values of the sensor that…
1
vote
2 answers

How can i stop the rotation of an object in an array? P5.JS

this is for a project in my p5.js class. I have a class that creates a 3D shape and i call it in my draw function in a for loop. In this for loop i create the shape and it has a rotation. If i press the the "a" button, it creates a new shape. My…
NoEl
  • 11
  • 1
1
vote
0 answers

fullScreen() broken in Processing P2D when Windows is scaled

In Processing 4, with the renderer set to P2D, fullScreen() does not make the window fullscreen as expected if Windows scaling is set to anything other than 100% (for example at 125%, the window will fill around 3/4 of the screen). width and height…
Hubbit200
  • 31
  • 6
1
vote
1 answer

Global variable "x" does not exist, Processing 3.2.3. Processing and Kinect

I was beginning with coding in Processing when I encountered an error which I can't find a solution for. **DISCLAIMER: I'm new to coding, so I'm having trouble understanding how it works lol I was attempting to use processing to write a code for a…
1
vote
1 answer

can we integrate a processing gui with moodle?

i made a gui recently where the goal was to view the results of some actions there , so mostly it was like a simulation game that has no connection with any hardware , i proposed this for my school that uses moodle and i want to know if there is a…
ikhlasse
  • 15
  • 4
1
vote
0 answers

How do I detect collisions between individual particles in LiquidFunProcessing?

I'm using processing's liquidfun library to simulate particle interactions, such as changing color on collision, but I can't find a contactlistener for individual liquid particles. There's a built in contactlistener for JBox2D objects, but it…
Blue Tube
  • 11
  • 1
1
vote
1 answer

I can't see Videos in Processing, I only hear the audio from it

I'm trying to play one of two videos based on sensor from Arduino (for a University project) The issue is that I can't see any of the videos in Processing but I only hear the audio. I rendered the videos using the H264 codec and they are in Full…
1
vote
1 answer

Methods as scenes in a game

I'm making a program where each "scene" of the story told is a void method, when one scene finishes its code (dialogue for example) then the program's "game state" changes into the next scene. There are 8 counting the start menu + credits but the…
AquaM20
  • 11
  • 2
1
vote
1 answer

Latency between frames or loop structure in {t||createCanvas() t+=0.01 }

I am trying to understand the loop in this Processing syntax: t=0 draw=_=>{t||createCanvas(W = 720,W) t+=.01 B=blendMode colorMode(HSB) B(BLEND) background(0,.1) B(ADD) for(y = 0; y < W; y += 7) for(x = 0; x < W; x+=7) dist(x, y, H = 360, H)…
JAP
  • 405
  • 2
  • 11
1
vote
2 answers

Loop construction in Processing artistic rendition

The code is from here: t=0 draw=_=>{t||createCanvas(W = 720,W) t+=.01 B=blendMode colorMode(HSB) B(BLEND) background(0,.1) B(ADD) for(y = 0; y < W; y += 7) for(x = 0; x < W; x+=7) dist(x, y, H = 360, H) + !fill(x * y % 360, W, W, …
JAP
  • 405
  • 2
  • 11
1
vote
1 answer

Processing Drag-and-Drop Class/Object

I'm currently trying to make a class in Processing that allows the user to create objects that can be dragged and dropped. It's not that hard to create individual objects, but I've had some trouble implementing them into a class so that the user can…
Zach M.
  • 31
  • 4
1
vote
0 answers

Ball sprite won't bounce off rectangles. Need to know how to make rectangles disappear

I have a ball sprite that is generated via generateSprite(); and also a platform sprite that is generated the same way. I need to make the ball bounce off the platform. This is a breakout style game so I have rectangles that are NOT sprites that the…
Reed
  • 21
  • 1