p5.js

Creative-coding sketchbook for artists, learners and generative art.

LGPL-2.1 · ★ 24.1k · 13 clips

p5.js clips13

Filter in Explore

How people build with p5.js

Works where the prompt, the code or the video is public. Videos load from the creator's own host when you press play.

Music Film About Functional Emotions

by eudaemonea · CC-BY-4.0, CC0-1.0, MIT, NOASSERTION, none · AI-made

Music Film About Functional Emotions — generated with claude-opus-5.5; public prompt, source, render.

Prompt
I think it'd be pretty awesome to make a real music video for it… make the actual frames and draw the video in js. or, whatever it is you want. what I don't want you to do is look at our earlier attempts… go all out, and do you to the fullest.

the lyrics are not the main thing. we want to create a real music video. p5 brushstrokes. interesting scenes. great timing and animation and story. not a fancy lyric video.

one area I'll push you on is timing, and not letting the scene sit too still for too long,

@other__reality

by other__reality · CC-BY-4.0, CC0-1.0, MIT, NOASSERTION, NOASSERTION, none · AI-made

@other__reality — generated with claude-opus-5.5; public source, render.

An Imagined Short-Video Feed

by pleometric · CC-BY-4.0, CC0-1.0, MIT, NOASSERTION, none · AI-made

An Imagined Short-Video Feed — generated with claude-opus-5.5; public prompt, render.

Prompt
I asked Opus 5.5 to make an animation of what its TikTok feed looked like 👇

Pop-punk anime music video for a dev song

by makevoid · CC-BY-4.0, MIT · AI-made

Pop-punk anime music video for a dev song — generated with claude-opus-5.5; public prompt, render.

About p5.jsagents, rendering, runtime
With agents
No official AI resources; LLMs write sketches readily thanks to the large public corpus of p5 code.
Render path
saveGif()/saveFrames() in-browser, or capture frames headlessly and encode with FFmpeg.
Runtime
JavaScript (Canvas/WebGL)
Best for
generative art · music visualisers · hand-drawn style shorts · education

Worth knowing

  • LGPL-2.1, ~24.1k stars, Processing Foundation source ↗

For the p5.js team

Featured on 24fps

This page is free and always will be. If it helps your users, drop the badge on your showcase or README.

<a href="https://24fps.dev/tools/p5js"><img src="https://24fps.dev/badge/p5js.svg" alt="Featured on 24fps" height="28"></a>