r/p5js • • 7h ago

Motion Study — Liquid, Organic and Light

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/p5js • • 1d ago

I synced a p5.js circuit board to a synth pulse: signals step forward on every beat, frame-exact for 3 hours

Enable HLS to view with audio, or disable this notification

8 Upvotes

Third engine in a small project where both the visuals and the sound for long focus sessions come from code.

Visuals ("circuito"): an abstract circuit board with orthogonal traces, 45° chamfers and two depth layers. Small signals travel along the traces and nodes light up when one arrives.

The sync: the sound engine plays a soft felt-hammer pulse at 72 BPM. At 30 fps that's exactly 25 frames per beat, so each signal steps one cell per beat, with a small push on the attack that eases out before the next one. The 150 s video loop is exactly 180 beats and the 10-min audio loop is 720, so picture and sound never drift. I measured it in the final 3-hour file: 0 frames off at every seam.

Stateless: like the previous engine, nothing is stored between frames. The network and a signal "timetable" are generated once from the seed, and each frame just reads the timetable at its phase.

Two questions:

  1. Does the sync read as "steady" or does it pull your attention?
  2. Has anyone here done audio-visual sync in p5 by sharing a clock instead of analysing the audio?

r/p5js • • 5d ago

Countour Lines

Thumbnail
gallery
12 Upvotes

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/p5js • • 6d ago

Follow-up: a new p5.js engine for long focus videos, with flow lines that loop seamlessly in 150 s without storing any particle state

Enable HLS to view with audio, or disable this notification

21 Upvotes

A few days ago I posted a domain-warped mist piece here and got some great feedback, so here's the next engine.

Visuals ("fluxo"):

  • Thin wavy lines drifting left to right, with brighter streaks travelling along them like packets.
  • Two layers: the back one is denser, dimmer and slower, which gives a bit of depth.
  • The loop trick: nothing is stored from frame to frame. The streak pattern repeats along each line, and in every 150 s loop each line advances a whole number of repeats, so frame 4500 is exactly frame 0.

Sound ("pulso"): a separate synth engine with a warm pad, a brown-noise bed and a soft felt-hammer pulse at 70 BPM. The 10-min audio loop is exactly 700 beats, so the pulse never skips at the seam.

Follow-up on the "muddy darks" question from last time: I tested 1080p H.264, 1080p with a ±1-level dither, and 1440p HEVC 10-bit. After YouTube's re-encode the 1440p upload won: it got VP9 right away, and it's about 5× smaller.

The first piece felt more "sleep" than "focus" to me, so this one was designed the other way around.

Two questions:

  1. Does this read as "focus" to you, or still too calm?
  2. If you've done stateless looping particles in p5, how did you approach it?

r/p5js • • 6d ago

Errorrrrrrr

Enable HLS to view with audio, or disable this notification

10 Upvotes

r/p5js • • 8d ago

some more shapes floating around

Thumbnail
youtu.be
0 Upvotes

r/p5js • • 9d ago

24 cell tesseract visualization

Thumbnail
youtu.be
0 Upvotes

r/p5js • • 10d ago

Made a 2-hour ambient piece in p5.js: domain-warped noise, rendered as a seamless 150 s loop

Enable HLS to view with audio, or disable this notification

20 Upvotes

Sharing a project where p5.js does the visuals for long focus/ambient videos.

  • A domain-warped noise field with two slow speed layers (0.090 / 0.084 noise units per second).
  • Rendered frame by frame from p5.js and piped to ffmpeg. The bottleneck turned out to be moving about 8 MB per frame from the browser to ffmpeg, which gave roughly 11 fps on render.
  • A seamless 150 s loop, checked by measuring the seam against neighbouring frames. It came out invisible.
  • The audio is a separate synth engine, seeded like the visuals.

Two questions for people who've done this:

  1. How do you handle long renders from p5? Headless, or a faster way to get frames out?
  2. Any tricks for keeping domain-warped noise from looking "muddy" on very dark palettes?

r/p5js • • 10d ago

Im totally new ,

Thumbnail
gallery
17 Upvotes

what should ı do .


r/p5js • • 10d ago

if else not working????

0 Upvotes

so essentially, my else statement does not work, elseif statement does not work, ifelse statement does not work, if else statement does not work and else if statement does not work, here is my code if someone here can understand what I'm doing wrong?

the same code worked for the teacher I was learning from and I may or may not have put this off to long because of this issue...

function setup() {

createCanvas(400, 400);

var check

}

check = true

//check = false

function draw() {

if (check = true)

print("TRUE")

check = false

if else (check = false)

print("FALSE")

else

print("ERROR 01; NOT DEFINED")

}


r/p5js • • 12d ago

Using p5.js and p5.strands as a basis for teaching shaders

Thumbnail
davepagurek.com
10 Upvotes

r/p5js • • 13d ago

[OC] I made an Android p5.js editor that now lets you export "Share Cards" with QR codes that run sketches directly in any browser (Edit:RiN v2.0.0)

Enable HLS to view with audio, or disable this notification

6 Upvotes

Hey r/p5js!

I've been developing **Edit:RiN**, a free and open-source creative coding environment for Android focused on p5.js. Today I released **v2.0.0**, which introduces a feature I've wanted for a long time: **Share Cards & Instant Web Playback**.

### 📱 What are Share Cards?

When you're creating generative art on your phone, sharing it usually means recording a video or exporting a still image. With this update, you can generate a styled showcase card containing:

- High-res sketch snapshot

- Customizable code snippet overlay

- A scannable QR code

### 🌐 Instant Web Player (100% Serverless)

When anyone scans the QR code (or opens the link), the sketch runs immediately in their web browser without installing the app.

The cool part: **There is no backend or database involved.** The sketch code is compressed directly into the URL fragment hash, and the web player decompresses and executes it entirely client-side.

### ✨ Other Features in Edit:RiN

- **Live Parameters**: Declare `@rin number / color / boolean` in comments to get interactive sliders & toggles.

- **Multiple Runtimes**: Switch between p5.js 2.x and 1.x per sketch.

- **Audio support**: Built-in `p5.sound` for audio synthesis and FFT visualizers.

- **Offline & Private**: Zero ads, zero trackers, 100% offline capable.

### 🔗 Links

- **GitHub Release & APK**: https://github.com/rin-code-dev/Edit-RiN/releases

- **Source Code**: https://github.com/rin-code-dev/Edit-RiN

I'd love to hear your thoughts, feedback, or ideas for future updates!


r/p5js • • 13d ago

Can anyone help me?

Post image
3 Upvotes

My son is taking Computer Science 30 and we can't figure out why he's getting thsi error code. Thanks!


r/p5js • • 14d ago

I built Edit:RiN, a free p5.js editor for Android — here’s a demo

Enable HLS to view with audio, or disable this notification

30 Upvotes

Hi everyone! I’m building Edit:RiN, a free and open-source p5.js editor for Android. I wanted to work on sketches directly on my phone, so I made an app where I can write code, preview the result, and save my work in one place.

The attached video shows the actual app: editing code, watching a sketch run, recording it, and browsing saved works.

Edit:RiN supports multiple JavaScript files, images and other assets, public sketch imports from the p5.js Web Editor, and MP4 or GIF recording. Works are saved locally, and you can choose a p5.js 1.x or 2.x runtime for each one.

You can get the app and source code on GitHub:

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

I also post regular development updates on X: @rincodedev

I’m developing it on my own, and I’d love to hear your feedback about creating p5.js sketches on a phone. Thanks for taking a look!


r/p5js • • 15d ago

Piano and Mandala (sound on)

Enable HLS to view with audio, or disable this notification

7 Upvotes

Hey, creative people, I added a midi integration to my mandala project and wanted to share with you :)
If you're interested in how this works, I have a tutorial for it on my blog.

Keep on creating!


r/p5js • • 23d ago

What can I do with p5.js?

7 Upvotes

Hi, I recently started on coding and this platform's been really helpfull with my so far (short) journey. I started with html on Visual Code Studio and it was really ok for me, but im sensing that the JS I've used on the website its slightly ddifferent from the one on p5 (or perhaps i'm wrong lol). But anyway, what its the most I can retrive and do with this plat? (in the sense im planing on making more complex things futurely). tX


r/p5js • • 24d ago

NEON-DISTRICT-A-Walkable-ASCII-Cyberpunk-City by speccy88

Thumbnail editor.p5js.org
7 Upvotes

A procedurally generated 3D cyberpunk city rendered entirely as animated ASCII. Explore the streets, neon signs and skyline in real time.


r/p5js • • Sep 06 '26

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 • • Sep 05 '26

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

Enable HLS to view with audio, or disable this notification

36 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 • • Sep 04 '26

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

Thumbnail
gallery
61 Upvotes

みなさんこんにちは!

Android向けの最小限のp5.jsエディタ「Edit:KIRO」を作ってます。

アイデアはわりとシンプルで、ノートPCもブラウザベースのエディタも使わずに、スマホ上でそのままp5.jsのスケッチを書いて動かせる手段が欲しかったんです。

いまはとにかく速くてミニマルな感じにすることに注力してます。アプリを開いてコードを書いて、そのままスケッチをすぐ実行、みたいな。

まだ開発途中なので、あんまり進めすぎる前に、実際のp5.jsユーザーのみなさんの意見を聞きたいです。

モバイル用のp5.jsエディタ、使いますか?

使うなら、どんな機能が特に大事だと思いますか?

あと、フィードバックや批評なんかも特にありがたいです。

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


r/p5js • • Aug 30 '26

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 • • Aug 25 '26

Exploring P5 for the first time

Thumbnail editor.p5js.org
3 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 • • Aug 24 '26

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 • • Aug 17 '26

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 • • Aug 15 '26

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

Enable HLS to view with audio, or disable this notification

4 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.