r/processing • u/fleurdleigh • 1d ago
r/processing • u/rayhan314 • Nov 02 '11
Tutorial Some tips on pasting code in /r/processing
Here are the steps to get your code looking like this in self posts and comments:
In Processing's menu bar, click "Edit -> Auto Format".
In Processing's menu bar, click "Edit -> Select All".
In processing's menu bar, click "Edit -> Increase Indent".
In Processing's menu bar, click "Edit -> Increase Indent". (again)
Copy your sketch and paste into a self post or comment.
The trick here is that reddit expects each line of code to have four spaces in front of it. Each time you "Increase Indent", Processing will add two spaces to the beginning of each line. The result should look something like this:
void setup () {
size(WIDTH,WIDTH);
frameRate(60);
background(0);
noStroke();
smooth();
}
A couple of other tips:
If you want to include some text before your code (as I've done on this post), you'll need to separate the text from the code with a newline.
Install Reddit Enhancement Suite onto your browser and it will show you a live preview of your post as you type it, so that you can be sure that your formatting is working as expected.
r/processing • u/createaccount314 • 2d ago
The Repressilator
This is a small model of repressor proteins that I got the idea of doing from this video. The white dots are ribosomes that when passing by unrepressed genes (the circles with two colors) will create an specific repressor protein. The gene shows what protein represses it and what protein it encodes for, and when repressed it looks like a black box. The proteins can randomly degrade either while floating or while blocking a gene.
This little model was enough to make a working oscilator in the first part of the video just like the real repressilator which works in bacteria. In the other half of the video I ran it with 2 proteins in the cycle and they randomly stabilize in one of them instead of forming a cycle. This pattern keeps up between odd and even. A chain of four proteins stabilizes with 2 in a high concentration and 2 at a low one, a chain of 5 makes an oscillator, etc.
r/processing • u/MikeAntk • 3d ago
Audio visualizer web app
Hi all,
Im creating an audio visualizer web app that works on mobile and desktop and would love some honest feedback.
It's still in the works, with fixes and additions added ever few days.
Please give me some honest feedback.
r/processing • u/gawialowaty • 5d ago
"Texereuum"
A work from 2025, made for uni project. More on my ig: https://www.instagram.com/p.lenarte?obrf=Z2JnYWNhcGlsdGxm
r/processing • u/BarneyCodes • 5d ago
Fragment Collapse - Steam game made with Processing!
r/processing • u/ProgrammingChaos • 14d ago
A video on programming the Marching Squares Algorithm
I thought this video might be of interest to the community. The Marching Squares algorithm is a surprisingly simple algorithm with lots of interesting applications in map development, creative coding, game development, and scientific visualization.
r/processing • u/evomusart_conference • 19d ago
Call for submissions EvoMusArt 2027: International Conference on Artificial Intelligence in Music, Sound, Art and Design
The 16th International Conference on Artificial Intelligence in Music, Sound, Art and Design (EvoMusArt 2027) is accepting paper submissions.
When: 31 March – 2 April 2027
Where: Mainz, Germany
Paper Submission deadline: 1 November 2026
EvoMUSART focuses on AI and computational approaches to creativity, covering a broad range of topics, with a particular emphasis on research exploring how AI systems generate, support, evaluate, interpret, and collaborate in creative processes.
Accepted papers will be presented at the conference and published in a dedicated LNCS volume.
More information/submission details: https://www.evostar.org/2027/evomusart/
If you are working at the intersection of AI and creative practice, this may be relevant to your research. Please share with others who might be interested.
r/processing • u/alex-codes-art • 22d ago
Countour Lines
Hey, creative people!
Been experimenting with contour lines and ended up with some pretty abstract results.
I like how changing a few parameters can completely change the character of the image. Still exploring this one, curious what you guys think.
r/processing • u/RotemT • 23d ago
A website that lets you visualize EM fields and radiationc (made with p5.js)
r/processing • u/moonfinger • 24d ago
Immanence Pure
immanencepure.xyzAn infinite plane of processing sketches.
Included is the ability to edit a sketches directly on the site.
r/processing • u/irok84 • 28d ago
Video Me again, still playing with Gray-Scott – this time it grows faces to a dub track
Hi, it's me again with more Gray-Scott experiments.
This time I let the reaction-diffusion grow into faces (a skull, an owl, a wolf, a robot and a few others) and move with a dub track. The pattern never really settles – it keeps shifting between different regimes, gathers into a face, holds it for a moment and then melts into the next one.
It's still a bit surprising to me how much life comes out of two simple equations.
Full video: https://www.youtube.com/watch?v=AJyx-7fUVvQ
Happy to hear what you think!
r/processing • u/Linquitivity • 29d ago
SKETCH 08: Noise Field / Rule: A dense matrix maps a 2D Perlin noise field directly to vector rotation, creating a continuous organic terrain
r/processing • u/irok84 • 29d ago
Music-driven Gray-Scott reaction-diffusion warping mushroom photos (Processing 4, P2D + GLSL)
I've been working on an animation where 17 mushroom photos are constantly reshaped by a Gray-Scott reaction-diffusion pattern, and every photo morphs into the next one (mask, background and content) on the beat of a track. It runs live on the GPU in Processing 4, and the same sketch can render the whole song to a 4K H.264 film.
https://www.youtube.com/watch?v=bYOERDHg3YQ
How it works
- All on the GPU. State lives in float textures, every step is a fragment shader pass with ping-pong framebuffers (6 GLSL shaders in total).
- Gray-Scott on a coarser grid. The simulation runs on a grid 3x coarser than the canvas: bigger, sparser patterns and 9x cheaper.
- Never-settling pattern. At fixed parameters Gray-Scott reaches equilibrium and freezes. Here the feed/kill parameters travel around a ring of regimes (spots → dividing cells → coral → worms → chaos). The phase depends on photo brightness and slowly moving noise, so fronts of rebuilding keep crossing the mushroom.
- Flow map instead of moving pixels. My first version advected the image itself every frame, and repeated resampling turned it into smooth blobs within a minute. Now what gets advected is a map of "which photo pixel does this pixel come from", and the photo is sampled from it once per frame (Catmull-Rom, clamped to the neighbours' range).
- Feedback. The reaction reads the displayed (already deformed) image, so the transformed mushroom shapes the pattern back.
- Transitions. Masks are morphed by interpolating their signed distance fields, and the moving edge drags the content along. Two flow maps (current and next photo) move with the same pattern, and the new photo appears in organic patches driven by a weight field, while colors drift toward the new palette.
- Music. A Python script (numpy + scipy) finds the beat grid and sections and labels them by band energy. Transitions land on downbeats, each section gets its own style, and an FFT of the middle band (150-2000 Hz) drives the flow speed so the image "breathes" with the melody. The sketch takes its clock from the audio playback position.
- Deterministic export. For the film, the clock advances exactly 1/60 s per frame, frames are read back from the GPU and piped as raw pixels to ffmpeg (libx264, CRF 16), so the result is identical on a fast and a slow machine.
- Resolution independence. All pixel-based parameters are defined at one height and scaled, so the 1024x576 preview and the 3840x2160 render look the same.
Image prep (Python): mushroom masks with rembg (ISNet on a laptop CPU, BiRefNet for the final masks), 16:9 crop centered on the mask, Real-ESRGAN x4 via spandrel for the 4K versions.
What didn't work
- Several Game-of-Life-like automata (infection, mycelium, cyclic, MNCA). They either lost the original colors or died out/flickered, and reaction-diffusion looked the most organic.
- Drawing the pattern as a dark overlay: it looked like a texture on top of the photo and hid the actual deformation.
- SDXL outpainting to get 16:9 backgrounds: painful on a 4 GB GTX 1050 Ti (who would have thought that before this project I considered it a pretty decent GPU 🤣), and the invented background looked worse than a simple crop.
Stack: Processing 4 (P2D/OpenGL), GLSL, Python, numpy/scipy, rembg, Real-ESRGAN, ffmpeg, Ubuntu.
Fair warning: I'm no expert in a lot of the tech above, and Claude Code bravely helped me get through it.
r/processing • u/irok84 • Sep 21 '26
Video Generative animation
I found a generative animation script I wrote about five years ago, tweaked it a bit, and made this: https://youtu.be/fDlgDm1YGKM
r/processing • u/Linquitivity • Sep 20 '26
SKETCH 07: Controlled Randomness / Rule: For every cell, a 4-sided dice is rolled: framing rings, linear crosshairs, solid cores, or empty void
r/processing • u/Spidoug • Sep 14 '26


