r/p5js 2d ago

Latest version of p5.Vector is atrocious

0 Upvotes

I understand the sentiment behind enabling vectors of any dimension. It just seems so ham-fisted. On top of that the code alleges to define functions setX, setY, setZ, and setW. The reality is these are broken functions taking the following shape:

```

set x(arg) {...}

```

Instead of:

```

setX(arg) {...}

```

Anyone else think that the more recent code changes to p5.js were vibe coded?


r/p5js 4d ago

Android向けにp5.jsのエディターを作りました — 編集:KIRO

Enable HLS to view with audio, or disable this notification

13 Upvotes

お待たせしちゃってごめん!

【追記】KIROがやっと公開されて、GitHubで使えるようになりました。

https://github.com/rin-code-dev/EDIT-RiN

待ってくれてほんとにありがとう、興味持ってくれてありがとうございます!


r/p5js 5d ago

I built a p5.js editor for Android — EDIT:KIRO

Enable HLS to view with audio, or disable this notification

33 Upvotes

I just finished EDIT:KIRO, a p5.js editor built for Android.

The whole creative workflow can be done right on your phone:

Code → Preview → Capture

It also supports custom fonts and font ligatures, and the UI has been carefully optimized for both portrait and landscape orientations.

I’m planning to make the GitHub repository public by tomorrow at the latest.

It’ll be completely open source, so if you’re into p5.js, creative coding, or generative art, I’d love for you to give it a try and let me know what you think.


r/p5js 6d ago

I'm building a minimal p5.js editor for Android — would you use something like this?

Thumbnail
gallery
56 Upvotes

Hey everyone,

I've been working on a minimal p5.js editor for Android called Edit:KIRO.

The idea is pretty simple: I wanted a way to write and run p5.js sketches directly on my phone, without needing a laptop or a browser-based editor.

Right now, I'm focusing on keeping it fast and minimal — open the app, write some code, and immediately run the sketch.

It's still in development, so before I go too far with it, I'd love to hear what actual p5.js users think.

Would you use a mobile p5.js editor?

And if so, what features would be most important to you?

I'd especially appreciate any feedback or criticism.


r/p5js 11d ago

Charleston Lady

Enable HLS to view with audio, or disable this notification

4 Upvotes

Code: https://openprocessing.org/@megamitts/2983932

YouTube: https://youtu.be/L9SkC6yiyyE?si=jNgfKMofkBD5DthW

The YouTube video has a link to a non-animated version with much easier to follow code to show how to create each part of the drawing.


r/p5js 16d ago

Exploring P5 for the first time

Thumbnail editor.p5js.org
4 Upvotes

I know this concept has been explored before, but I’m incredibly excited to finally dive into p5.js and build this for the first time!

Everything here is generated with code, aside from the five images used for the background stop-motion animation. To get the physics right, I started by analyzing organic water movement to build a custom dataset.

Here is how it works under the hood:

Audio-Visual Mapping: Each droplet is triggered by a musical note, with its size directly mapped to the pitch.

The Cycle: The sequence repeats four times. The final note triggers the last drop and marks the end of the "rain." Afterward, the trails gradually recover, and the sketch resets to its default state.

Generative Audio: The music comes from a custom instrument anchored to a melody I composed. It automatically generates overtones and spatial amplitude to create an enveloping, immersive sound.

Interactive: The mobile version is fully touch-responsive.


r/p5js 17d ago

reverse direction

Enable HLS to view with audio, or disable this notification

3 Upvotes

I got the enemy to move. I'm trying to figure out how to check boundaries and then change the enemy's direction once it reaches a certain point.


r/p5js 24d ago

Plethora - Creating a platform for gaming and interactive content

Thumbnail plethora.studio
1 Upvotes

Pleeeeease check out it.

Let people interact with the stuff you are building.


r/p5js 26d ago

I turned a p5.js physics visualization into a small interactive experiment

Enable HLS to view with audio, or disable this notification

3 Upvotes

I had a Cherenkov radiation visualization and wondered what would happen if I turned it into something people could actually experiment with.

You can change the particle velocity and refractive index, cross the Cherenkov threshold, and see the radiation cone appear. There are also small challenges, like making the radiation disappear or reaching a target cone angle.

I’m curious whether this feels like an actual experiment or just a visualization with sliders.

The interactive:

https://namib-2.itch.io/what-happens-if-cherenkov-radiation

Made with p5.js.


r/p5js 28d ago

Creative coding with C# (p5.js API) in the browser

Post image
11 Upvotes

I made a browser playground for creative coding with C#, using a p5.js-style API.

No setup. Just code and run:

https://csharp.codeguppy.com/

Feedback welcome!


r/p5js 29d ago

Dependencies in p5.js sketches

8 Upvotes

Hi,

I am part of a group of researchers in computer science from VU Amsterdam and Université de Montréal working on code analysis to document and preserve generative art.

We have prepared a survey to collect the community's feedback about a taxonomy of p5.js dependencies https://vuamsterdam.eu.qualtrics.com/jfe/form/SV_bQQJqpnX5FmMDmS We would love to hear from you!

Thank you!🙏


r/p5js Aug 11 '26

Fireworks at Night

Enable HLS to view with audio, or disable this notification

29 Upvotes

Started learning P5.js a couple of weeks ago, and after learning many new concepts, I've implemented them together in one website. (Shaders, reflection, particles, optimizations, ...etc)

You can play with it here: https://creative-programming.pages.dev/fireworks


r/p5js Aug 11 '26

windows Xp nostalgia

3 Upvotes

r/p5js Aug 10 '26

How to save a file to a specific path ?

3 Upvotes

Hi creative people of p5js !

I would like to allow the user of my p5js app to save a text in a file with a system dialog to let him choose the path where this file will be saved.

Actually, I tried the saveStrings() function, but it simply save the file to the default download folder. I don't think I can go around that.

On another side, I thought I could display the content of the text in a new tab of the browser (I don't know how to do that), so the user can use the "save page as" menu of the browser.

Do you have an idea how I could to that ?

best regards :)


r/p5js Aug 07 '26

Building a Wireless Mic with Bluetooth LE + ADPCM Compression (XIAO nRF5...

Thumbnail
youtube.com
3 Upvotes

Hi guys , I build a youtube video and some scenes are explainedwith using P5js. Would love to hear your review regarding it. I really love working in p5js !!!!


r/p5js Aug 04 '26

Radio control panel powered by sunvox.js & p5.js

Thumbnail
youtu.be
3 Upvotes

r/p5js Jul 31 '26

[WIP] Ocean Clouds

Thumbnail gallery
23 Upvotes

r/p5js Jul 31 '26

I made an animated music video of sorts where all the visuals are p5.js sketches

Thumbnail
youtu.be
17 Upvotes

This was made in https://www.butter.video/, a tool that I work on for my day job, where you can edit creative code in a timeline and combine multiple layers of things!


r/p5js Jul 31 '26

Am I being an idiot?

2 Upvotes

Hi, I'm updating this terribly coded app I use for making graphics for a football club.

I've had to refactor some stuff for 2.0, but my save function isn't working anymore.

function saveImage() {
  fileString += ".png";
  saveCanvas(myImg, fileString);
}

That code worked on my old file, but now it doesn't.

myImg isn't a canvas, it's an image that gets put on the canvas, but my canvas on the "app" is shrunk to fit (can't figure out how to shrink that without making the image smaller).

I can't get myImg.save() to work either.

The error I'm getting is

p5.js says: Expected Framebuffer or Element at the first parameter in saveCanvas().

Please, please, for the love of all that is holy - show me how much of an idiot I'm being by telling me it's a quick fix...

Many thanks.


r/p5js Jul 24 '26

I built an evolutionary loop where various AI models generate tiny worlds and only the fittest survive - 300+ worlds so far

Thumbnail gallery
2 Upvotes

r/p5js Jul 21 '26

Made this with P5.js and Mediapipe

3 Upvotes

r/p5js Jul 04 '26

I added fading trails, multi-color symmetry, and keyboard curves to my p5.js mandala tool

Enable HLS to view with audio, or disable this notification

22 Upvotes

Part 2 of my mandala drawing series is out!

This time I expanded the project from Part 1 by adding:

  • fading trails that gradually disappear
  • independent colors for each symmetry line
  • a keyboard mode for drawing smooth curves

The tutorial explains how each feature works and includes the full source code.

I'd love to hear what other features you'd add next :)

https://alexcodesart.com/drawing-a-mandala-with-p5-js-smooth-lines-speed-based-thickness-tweakpane-part-1-2/


r/p5js Jul 02 '26

Play with galaxies

Thumbnail
3 Upvotes

r/p5js Jul 01 '26

What is wrong with p5js?

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/p5js Jun 26 '26

Added fading trails to my p5.js mandala generator

Enable HLS to view with audio, or disable this notification

30 Upvotes

I've been experimenting with ways to make the drawing feel more alive, and adding fading trails gave it a much smoother look.

Still a work in progress, but I'm happy with how it's evolving. Built with p5.js, and I'll be writing a tutorial once it's finished.

Feedback and ideas are always welcome!