TypologySienna Chen
ToolsLightweight

p5.js

The beginner-friendly creative-coding library.

A beginner-friendly drawing library: write a setup function and a draw function and something appears on screen within a minute. It comes from the Processing community, so a huge amount of the daily generative art on X is made with it. Move to Three.js or WebGL when you need speed or 3D.

Breaks when
global mode collides with other librariesWEBGL mode is a thin layer with its own quirks
Also called
Processing, p5, sketch

Prompts

Daily sketch, print-ready
A p5.js sketch, 1080 × 1350, instance mode. A grid of 24 × 30 cells; in each, draw a short arc whose angle comes from noise(col × 0.08, row × 0.08, frameCount × 0.004). Stroke 1.5 px, ink on paper, no fills. Loop at 30 fps; the s key saves a PNG named after the seed. randomSeed and noiseSeed come from a number in the URL.
10 PRINT with regions
p5.js: the classic 10 PRINT maze (one diagonal per cell, slash or backslash), but the choice comes from a noise field so neighbouring cells agree in regions. Regenerate slowly by scrolling the noise’s z with time. Cell size 24, full-window canvas, windowResized handled.
Sound-reactive but calm
p5.js with p5.sound: one mic input into an FFT of 64 bands. Draw 64 vertical bars, but smooth each band with lerp(prev, cur, 0.15) so the motion stays calm, and only start audio after a click (getAudioContext().resume()). Show a start button until then.

Related

Resources · 3