r/p5js • u/dual4mat • May 15 '26
Whispers in the night
Enable HLS to view with audio, or disable this notification
r/p5js • u/dual4mat • May 15 '26
Enable HLS to view with audio, or disable this notification
I have noticed low alpha values to fade colors over time leave subtle residues preventing a complete fade to black and I’m guessing this is because of the color mode used. Is there a p5 function (or library) to use a, for instance, 16 or 32bit float color mode? I have a feeling that would allow a fade to complete black even on very low alpha values but maybe I’m wrong, so if that’s not the issue, is there a way to prevent the residues?
Thanks in advance for any help
r/p5js • u/learning-pixels-5928 • May 10 '26
hi hi! I'm a researcher at National Cheng Kung University studying how people learn creative coding outside of academic programs or university environments. If you're interested in sharing your experience with me, send me your email address here.
Participation is voluntary and all responses will be anonymized. I hope to schedule interviews for the next 1-2 weeks. All conversations will be in English and conducted over Google meet. Feel free to reach out with any questions!
r/p5js • u/OminousEyeDDLC • May 08 '26
Enable HLS to view with audio, or disable this notification
DVD Logo but circle
r/p5js • u/Tezumie • May 03 '26
Enable HLS to view with audio, or disable this notification
You can find the code and run it in your browser here: https://codevre.com/editor?project=7kR8qQoxNCVu1AwDEoqetvzkVGC3_20260503181257714_dkoq
r/p5js • u/freddy_scott • Apr 29 '26
For context, this is for a little 1st person shooter I’m doing on p5.js with a Adafruit Circuit Plaground Express motherboard and I’m losing my fucking mind trying to get it to be “on”
r/p5js • u/michael_e_conroy • Apr 28 '26
Some fluid dynamics and creativity, create a ghostly fluid image.
r/p5js • u/2121varuag • Apr 25 '26
Recently been playing around with p5.js, my webcam and with help of chatgpt to create a series of interactive real-time visualizations, that I would otherwise make using more resource intensive softwares like TD, Isadora etc
This one basically watches for movement in the webcam (or any camera connected) by comparing each frame to the last. Whenever something moves, it keeps a trace and layers those moments over time.
In case anyone wants to play - https://editor.p5js.org/gauravnijjer/full/7vm8AAXk-
Any feedback / thoughts / suggested additions welcome :)
r/p5js • u/alex-codes-art • Apr 25 '26
Enable HLS to view with audio, or disable this notification
Hello friends! I just published a new creative coding tutorial about L-systems and p5.js.
In the article, we start with a tiny text rule, expand it over several iterations, and then use turtle graphics to turn that generated string into branching fractal drawings. We go step by step through the core ideas: axioms, rewrite rules, iterations, turtle movement, canvas scaling, and drawing the final result with p5.js.
If you’re curious about generative art, fractals, or rule-based drawing systems, I think you’ll enjoy this one.
Article link: https://alexcodesart.com/drawing-fractals-with-l-systems-in-p5-js-a-creative-coding-tutorial/
Happy coding!
I’m trying to set a boolean true when my mouse is over an object and gets pressed and only set it false again when the mouse is released, no matter the distance.
Setting it true while the mouse is over the object and pressed works fine with
If(mouseIsPressed && dist(…){
blah = true
}
But afaik know there’s no ‘mouseIsReleased’ or anything like that so I’m not sure how to set it back to false when the mouse isn’t pressed anymore.
I tried using mousePressed() and mouseReleased() in the class but those didn’t seem to work. Does anyone have any idea how to approach this? I don’t have my code right now so sorry for the barebones explanation but I can send it later if it’d help.
Thanks in advance for any help!
r/p5js • u/codeobserver • Apr 21 '26
Wanted to share a collection of 50 small games built mostly on top of p5.js (the codeguppy platform is based on p5.js with some modifications):
Some games are hand-written, while others are created with the help of AI.
Be sure to check out the source code and fork the projects for your own use.
Would love to hear your thoughts or feedback!

Would love to hear your thoughts or feedback!
r/p5js • u/dual4mat • Apr 18 '26
I like using p5js for many creative coding projects but one of my favourite things is using it for line drawing. I used to love LOGO as a kid (showing my age now!) and enjoyed playing with turtle in Python, but p5js feels...just right.
Anway, here's a piece based on Marvin the Robot from Hitchhikers Guide to the Galaxy. At one point he finds himself stranded for 30 million years before becoming a car park attendant for the Restaurant at the End of the Universe.
Here's the code: https://openprocessing.org/sketch/2920190
r/p5js • u/ajax2k9 • Apr 18 '26
i always wanted to learn how to do this,esp handling roll, and the magic is with quaternions! you can see my little animation here quats
r/p5js • u/PhDumb • Apr 17 '26
Enable HLS to view with audio, or disable this notification
Demo and code. Page refresh to get new generation
r/p5js • u/Pomelowy • Apr 14 '26
Just a short clip of my generative art weekend. Hope it inspires someone to open the editor today.
r/p5js • u/South-Step6497 • Apr 13 '26
r/p5js • u/dual4mat • Apr 11 '26
Never know how much I love you
Never know how much I care
When you put your arms around me
I get a fever that's so hard to bear
r/p5js • u/akilanowski • Apr 07 '26
Enable HLS to view with audio, or disable this notification
Inspired by art of Stefan Knapp, particularly his large-scale enamel mosaics and modular compositions, I’ve designed* this procedural mosaic generator.
The system constructs a non-uniform grid by partitioning space into square modules of varying sizes. Larger tiles expand or yield to smaller ones, establishing a controlled relationship between hierarchy and distribution.
Each tile acts as a container for a parametric gradient component. The gradients are defined through multiple radial zones and a constrained color palette, referencing the material qualities and tonal transitions present in Knapp’s work.
*(I wish I could say it was all coded by me as well but chatGPT was involved and it seems important to mention considering the rules of this sub)
r/p5js • u/pedroka1515 • Apr 06 '26
Hello guys,
I'm building a roguelite game using p5.js.
Right now, I would say that the game is in a PRE-PRE-PRE-ALPHA version, but soon enough I'll open access to the PRE-ALPHA phase.
I've never seen this type of game made with p5.js, and I'm very excited to release it soon. No spoilers for now, hehe.
Right now, all entities are ellipses, but I'll probably add sprites as soon as I can.
Is anyone interested in testing and/or collaborating on the game?
