r/processing • u/wojbest • Jul 17 '26
Tutorial why is the whole ide great but the debuggers so shit
like who thought it was just gonna be 1 long list ohh you have 100 variables good luck finding the one you need
r/processing • u/wojbest • Jul 17 '26
like who thought it was just gonna be 1 long list ohh you have 100 variables good luck finding the one you need
r/processing • u/slipshapes • Jul 15 '26
Different outputs for
X = n1 * (sin (θ * n2) + cos (θ * n1))
Y = n2 * (sin (θ * n1) + cos (θ * n2))
All shapes made in processing and then put together + edits in InShot
r/processing • u/Huge-Project-599 • Jul 10 '26
FYI I changed the language from Java to python and every time it opens whenever I try to switch it back to pythons processing crashes
r/processing • u/headlessBleu • Jul 08 '26
I want to create my own library of shapes. where can I store it to import like a normal java library?
r/processing • u/CannedFilet • Jul 07 '26
Film fireworks -> decompose frames -> Processing video feedback sketch =
Composited and kaleidoscoped in DaVinci Resolve.
Hints, tips, and tricks I learned:
blendMode(ADD); can be overpoweringblendMode(LIGHTEST); works great for dark scenes intermittently lit by something interestingblendMode(BLEND); to go back to covering over previous framesPGraphics for drawing at a larger resolution than your screens. Great for any sketch!
internal; remember to use:
internal = createGraphics(outWidth, outHeight); in setupinternal.beginDraw(); before adding to it, andinternal.endDraw(); before using something like <your_PImage_var> = internal.get(0, 0, outWidth, outHeight);<your_PImage_var>.resize(width, 0); will make it the same size as your Processing window. use before image(<your_PImage_var>, 0,0); to draw a preview.internal. on the front.- internal.ellipse(.... for exampler/processing • u/headlessBleu • Jul 07 '26
is one more stable than the others?
r/processing • u/MacheteToothpick • Jun 19 '26
i made my own tile system with each sprite being 4x4 pixels in size. the sprite folder is only 2.6 kB yet it takes soooo long (around 6 seconds) just to change Pac Man's sprite. I am not pursuing this project no more
r/processing • u/Deajena • Jun 16 '26
After calling saveFrame(); a new file is saved with a name and a sequence of numbers.
I would like to reference the name of the file to add it to a string. Ideally, I want to use the text() function to display in the screen "Saved file is called", nameOftheFile.
How do I add the name of the just saved file to a text function ? How do I store the name of the file in a variable, for example?
I understand that I can define the name and then a sequence of numbers. Is the name of the saved frame something that I can be called directly, or that it is stored somewhere?
Or do I need to keep track of the saved frames with an index and then re-create the string?
I am not sure how to look this up, or how to access data of the saved file.
r/processing • u/Deajena • Jun 16 '26
Hello,
I have a sketch (ascii art live feed), and I want to save captures of the feed on a separate folder. Like a photobooth.
I want to display in the screen the name of the saved file. Is is possible to do this? I couldn't find in the save() or saveGraphics() documentation anything about using the name of the resulting file.
Ideally:
Person clicks the mouse
save() is called
screen displays something like " Your photo is called "screen-0005.tiff" "
Is this possible?
Thanks !
r/processing • u/shanteacontrols • Jun 15 '26
I've spent the last few months expanding my MIDI-focused OpenDeck platform into an OSC-over-Ethernet platform for interactive installations. The goal was to create a reliable OSC sensor and I/O platform that can run on Ethernet-enabled hardware without requiring any coding, making deployment as simple as possible.
Unlike many OSC devices that focus on Wi-Fi or a single hardware ecosystem, OpenDeck runs on a wide range of Ethernet-capable development boards. A major focus was support for Power-over-Ethernet hardware, allowing both power and OSC communication over a single cable. Some of the supported boards are:
Many more boards are supported, allowing you to choose hardware based on cost, performance, PoE requirements, or availability rather than being locked into a specific ecosystem. Once the OpenDeck firmware is loaded on supported boards, they can be reconfigured remotely over the network through the web interface, eliminating the need to physically connect to them after installation.
OSC data is published from standard input types:
OpenDeck can also receive OSC messages and control hardware such as:
Most supported boards also provide PWM outputs, allowing individual brightness or output-level control (0–100%).
Various interactive sensors are also supported:
Configuration is done through a browser-based interface. Devices can be discovered via mDNS and configured over the network without installing software.
OpenDeck works with any OSC-capable software, although the primary focus so far has been TouchDesigner, Processing, and QLab.
There are example Processing sketches in the repository that work out of the box with supported sensors.
The firmware itself is fully open source. The web configurator is licensed separately (€25), which also includes browser-based firmware flashing for supported boards.
I'm particularly interested in feedback from people working in:
In exchange for honest feedback, I'd be happy to provide a number of free web configurator licenses.
The source code is available on GitHub: https://github.com/shanteacontrols/OpenDeck
The project also includes an extensive wiki covering everything from flashing supported boards to configuring OSC endpoints, sensors, and I/O.
r/processing • u/madse19 • Jun 13 '26
r/processing • u/Miserable_City6482 • Jun 11 '26
Hi everyone,
I built a small project called p5forge that transpiles Processing-style code to p5.js in the browser.
It is not a full Java compiler, it is a practical converter for common sketch patterns:
I would love feedback from people with older Processing sketches:
Demo: [https://oth-aw-meiller.github.io/p5forge/](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html)
Repo: https://github.com/OTH-AW-Meiller/p5forge
Thanks, I am especially interested in real sketch examples that currently fail.
r/processing • u/bluemarble__ • Jun 11 '26
r/processing • u/bluemarble__ • Jun 10 '26
I'm trying to create a single line with defined dots so then I can move them dynamicly with the mouse, so I'm still on the phase of creating the line in itself.
The thing is, when I call my written function, it gives me a NullPointerException, and I don't know why. Please, help me.
Linhas linhaH;
class Linhas {
void desenhar(float altura) {
noFill();
stroke(50);
beginShape();
for (float i=0; i<= 1; i= i+0.10) {
vertex(width*i, altura);
}
endShape();
}
}
void setup() {
size(600, 450);
linhaH.desenhar(100);
}
r/processing • u/Console_Only • Jun 06 '26
I have been tasked to write the code of an Insertionsort algorithm as well as some graphical output and the sorting itself works perfectly fine, but i can´t find a way to make the code sort the array once for every time I press a key. If I use the while(keyPressed) then it just runs the whole Algortihm until its done after I press the key and the if(keypressed) runs it once and then never. I also tried setting the function to keyPressed() and setting the requirements to a keyCode but that doesn´t work either. I have no idea on what to do anymore, help would greatly be appreciated!
int[] unsorted = new int[15];
int w = 1;
void setup()
{
//frameRate(10);
//size(1080, 720);
for (int i = 0; i < unsorted.length; i++)
{
unsorted[i] = int(random(255));
}
}
void draw()
{
for (int k = 1; k < unsorted.length; k++)
{
int toSort = unsorted[k];
int n = k;
if (w == 1) {
println("Ini: ");
println(unsorted);
println(toSort);
w++;
}
while (n > 0 && toSort < unsorted[n - 1])
{
unsorted [n] = unsorted [n - 1];
n--;
unsorted[n] = toSort;
println(unsorted);
println(toSort);
}
}
}
r/processing • u/klawkupoll • Jun 05 '26
r/processing • u/slipshapes • Jun 04 '26
Enable HLS to view with audio, or disable this notification
Made in Processing. Inspires by 90s adventure games :) Insta: www.instagram.com/slipshapes/
r/processing • u/mhotelliepel • May 23 '26
Hello everybody!
I ran into an issue using the processing program for my art project. Basically I have created this code on Linux mint and it's giving me an error when I try to run the sketch: "Could not find any devices". I have a Arkmicro technologies Inc. USB2.0 PC CAMERA. It works in the app "Cheese" and it works on a different Windows computer. I tried using ChatGPT to solve the issue, but to no avail. Currently I've tried these things:
I'm not very familiar with Linux, this is my first time using them and I'm not really sure where to even continue further. ChatGPT was telling me that it's because of the 'snap' way that Processing was downloaded that's why it's not detecting my camera. I did manage to get this error too after the previous steps listed above
(process:3879): libsoup-ERROR **: 22:00:16.302: libsoup3 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported. Could not run the sketch (Target VM failed to initialize).
But I'm not sure what does that even mean.
Could someone please help me with this project, I'm not really a programmer so don't go hard on me please. Here's the code for the sketch that I want to use.
import processing.video.*; Capture cam; PImage prevFrame; int threshold = 22; void setup() { fullScreen(); background(0); cam = new Capture(this, 640, 480); cam.start(); prevFrame = createImage(640, 480, RGB); while (!cam.available()) delay(50); cam.read(); prevFrame.copy(cam, 0, 0, 640, 480, 0, 0, 640, 480); } void draw() { if (!cam.available()) return; cam.read(); cam.loadPixels(); prevFrame.loadPixels(); loadPixels(); float scaleX = (float) width / cam.width; float scaleY = (float) height / cam.height; for (int y = 0; y < cam.height; y++) { for (int x = 0; x < cam.width; x++) { int camIndex = y * cam.width + x; color curr = cam.pixels[camIndex]; color prev = prevFrame.pixels[camIndex]; float diff = dist(red(curr), green(curr), blue(curr), red(prev), green(prev), blue(prev)); if (diff > threshold) { int screenX = int(x * scaleX); int screenY = int(y * scaleY); // Strong corruption color color corruptColor = color( random(40, 120), 180 + random(75), 200 + random(55) ); int blockSize = (int)random(1, 4); for (int dy = 0; dy < scaleY * blockSize; dy++) { for (int dx = 0; dx < scaleX * blockSize; dx++) { int idx = (screenY + dy) * width + (screenX + dx); if (idx >= 0 && idx < pixels.length) { if (random(1) < 0.18) { pixels[idx] = color(255); // White glitches } else { pixels[idx] = corruptColor; } } } } // Horizontal glitch lines if (random(1) < 0.28) { int glitchY = screenY + (int)random(-10, 10); for (int gx = 0; gx < width; gx += 4) { int idx = glitchY * width + gx; if (idx >= 0 && idx < pixels.length) { pixels[idx] = color(120, 255, 230); } } } } } } updatePixels(); prevFrame.blend(cam, 0, 0, cam.width, cam.height, 0, 0, prevFrame.width, prevFrame.height, BLEND); fill(0, 11); rect(0, 0, width, height); } void keyPressed() { if (key == 'r' || key == 'R') { background(0); } if (key == '+') threshold = max(8, threshold - 3); if (key == '-') threshold = min(70, threshold + 3); }
r/processing • u/BlondieFurry • May 18 '26
Enable HLS to view with audio, or disable this notification
my first sketch: inspired by snd - tenderlove album cover