๐Ÿ“– Code Guides - Complete Catalog

Comprehensive table of contents for all 567 documented p5.js creative coding sketches. Each entry shows the sketch's purpose, key programming concepts from the actual documentation, and links to detailed line-by-line code explanations.

567 fully documented sketches ยท Organized by creation date ยท Real concepts from AI-generated docs

# Preview Sketch Details Actions
101 AI Creature Evolution - xelsed.ai - p5.js creative coding sketch

AI Creature Evolution - xelsed.ai

This sketch simulates a mini ecosystem where circular creatures wander the canvas hunting for green food pellets, growing when they eat, splitting into mutated offspring when large enough, and dying when they starve. Over time genetic traits like vision radius and turning speed drift through mutation, creating an evolving population, while the Web Speech API narrates milestones out loud.

Key Skills:
  • Object-oriented classes
  • Genetic mutation / evolution simulation
  • Trigonometric movement (cos/sin/atan2)
  • Array management (splice, push, spread)
  • Web Speech API integration

by Anonymous ยท 400 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
102 Hypnotic Lava Lamp - xelsed.ai - p5.js creative coding sketch

Hypnotic Lava Lamp - xelsed.ai

This sketch simulates a classic lava lamp: soft, glowing orange-yellow blobs made of noisy, wobbling blob shapes drift slowly upward and downward inside a dark purple glass tube. The blobs use Perlin noise to squash, stretch, and wobble organically, and glow via canvas shadow blur combined with additive blending to make overlapping blobs brighten each other.

Key Skills:
  • HSB color mode
  • Perlin noise for organic motion
  • Canvas glow via shadowBlur
  • Additive blend mode
  • Object-oriented design with classes

by Anonymous ยท 399 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
103 AI Coin Flip - Heads or Tails with Stats - p5.js creative coding sketch

AI Coin Flip - Heads or Tails with Stats

This sketch creates an animated gold coin that flips end-over-end when clicked, using a squishing scale trick to fake a 3D flip, then lands on a random Heads or Tails result. A running tally of heads versus tails is displayed below the coin, turning a simple click interaction into a tiny stats-tracking toy.

Key Skills:
  • State flags for animation gating
  • millis()-based timing
  • Cosine easing for fake 3D rotation
  • push()/translate()/scale() transforms
  • Ternary operator with comma expressions

by Anonymous ยท 398 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
104 AI Mind Reader - xelsed.ai - p5.js creative coding sketch

AI Mind Reader - xelsed.ai

This sketch creates an interactive 'AI Mind Reader' where a glowing neon brain pulses with animated neural connections while the user types cryptic hints into a text box. Each hint is sent to the OpenAI API, and the AI's guess floats away from the brain as a fading neon text bubble, accompanied by spoken audio feedback via the Web Speech API.

Key Skills:
  • Bezier curves
  • Additive blending (blendMode(ADD))
  • ES6 classes and objects
  • p5.js DOM elements (createInput/createButton)
  • Async/await fetch API calls

by Anonymous ยท 396 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
105 AI Symmetry Canvas - Kaleidoscope Drawing with 6-Fold Mirroring - xelsed.ai - p5.js creative coding sketch

AI Symmetry Canvas - Kaleidoscope Drawing with 6-Fold Mirroring - xelsed.ai

This sketch turns mouse movement into a mesmerizing mandala by mirroring every line segment you draw six times around the center of the canvas. Colors shift through the rainbow based on the angle from center, and a subtle fade effect leaves gentle trails as the pattern builds up.

Key Skills:
  • Rotational symmetry with translate/rotate/push/pop
  • HSB color mode and hue mapping
  • Trigonometry with atan2() for angle calculation
  • map() for value remapping with clamping
  • Fade/trail effect via low-alpha overlay

by Anonymous ยท 395 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
106 AI Dying Battery - Watch the Panic Unfold - p5.js creative coding sketch

AI Dying Battery - Watch the Panic Unfold

This sketch renders a looping animated battery icon that visually drains from 100% down to 0% over a fixed cycle, changing color from green to yellow to red and swapping in increasingly panicked text messages as the charge falls. Once it hits 0%, it instantly loops back to full and starts again, forever repeating the anxiety spiral.

Key Skills:
  • Time-based animation with millis()
  • Modulo arithmetic for looping progress
  • lerpColor for smooth color blending
  • Conditional chains (if/else if) for state-like behavior
  • Rounded rectangles and layered shapes

by Anonymous ยท 394 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
107 TooneTouch - p5.js creative coding sketch

TooneTouch

TooneTouch fills the screen with a 10x10 grid of circles that glow, pulse, and play musical notes when you click them. Left alone, the piece drifts into an autonomous 'idle mode' where it plays itself, cycling background colors and triggering random cells to a soft ambient drone.

Key Skills:
  • HSB color mode for easy hue cycling
  • Tone.js synths, effects, and sequencing
  • State machines (idle vs interactive modes)
  • Object-oriented design with a Cell class
  • Trail effects via semi-transparent overlays

by Anonymous ยท 394 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
108 AI Ecosystem Oracle - xelsed.ai - p5.js creative coding sketch

AI Ecosystem Oracle - xelsed.ai

This sketch simulates a living ecosystem of colorful blob creatures that wander, eat food, grow, split into offspring, and die of old age. A text box lets you type commands like 'feast' or 'plague' to an AI oracle, which calls OpenAI's API to interpret your intent and unleash an effect on the whole population, complete with a spoken prophecy.

Key Skills:
  • Object-oriented design with ES6 classes
  • Async/await and the fetch API
  • Structured JSON responses from an AI model
  • Array iteration, push() and splice() for population management
  • Frame-based timers using frameCount

by Anonymous ยท 392 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
109 Deomo Of Ai coding - p5.js creative coding sketch

Deomo Of Ai coding

This sketch creates a mesmerizing swarm of 160 glowing orbs that orbit a shifting center point, each pulsing with color and wobbling in radius. Additive blending and translucent trail overlays combine to produce a hypnotic, glowing particle field that gently follows the mouse.

Key Skills:
  • Object arrays for particle systems
  • HSB color mode
  • Additive blend mode (blendMode(ADD))
  • Trail effects with translucent overlays
  • Perlin noise for organic flicker

by Anonymous ยท 392 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
110 AI Synth Pad - Interactive Musical Grid Click the colorful pads to play musical tones! A 4x4 grid o - p5.js creative coding sketch

AI Synth Pad - Interactive Musical Grid Click the colorful pads to play musical tones! A 4x4 grid o

This sketch creates a glowing 4x4 grid of colorful synth pads that each play a note from a C major scale when clicked. Clicking a pad triggers a sine-wave tone through p5.Oscillator and flashes a bright HSB-colored glow that smoothly fades away, turning the canvas into a playable, visually reactive instrument.

Key Skills:
  • Classes and objects (OOP)
  • p5.Oscillator and sound envelopes
  • HSB color mode
  • Exponential decay animation
  • Mouse hit-testing with contains()

by Anonymous ยท 391 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
111 AI Breathing Mandala - Meditative Geometric Animation - xelsed.ai - p5.js creative coding sketch

AI Breathing Mandala - Meditative Geometric Animation - xelsed.ai

This sketch renders a glowing, symmetrical mandala made of concentric rings of circles, triangles, and hexagons that smoothly expand and contract like a breathing rhythm. Moving the mouse toward the center speeds up the breathing cycle, while soft glowing dust particles drift in the background for a calm, meditative atmosphere.

Key Skills:
  • HSB color mode for smooth hue animation
  • Trigonometry (sin/cos) for circular shape placement
  • Nested loops for layered pattern generation
  • Additive blend modes for glow effects
  • map() for scaling one value range to another

by Anonymous ยท 391 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
112 AI Boids Flocking - Emergent Swarm Intelligence Watch 100 birds flock together using Craig Reynolds - p5.js creative coding sketch

AI Boids Flocking - Emergent Swarm Intelligence Watch 100 birds flock together using Craig Reynolds

This sketch simulates a flock of 100 triangular birds ('boids') that move around the screen following three simple local rules โ€” separation, alignment, and cohesion โ€” plus a fourth rule that makes them flee the mouse cursor like a predator. No bird is told to flock; the group behavior emerges purely from each boid reacting to its nearby neighbors.

Key Skills:
  • Object-oriented programming with ES6 classes
  • Vector math with p5.Vector (add, sub, limit, setMag, heading)
  • Steering behaviors (separation, alignment, cohesion)
  • Emergent behavior from simple local rules
  • HSB color mode mapped from direction angle

by Anonymous ยท 390 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
113 AI Raindrop Symphony - Musical Rain Visualization Watch raindrops fall and create music! Each drop - p5.js creative coding sketch

AI Raindrop Symphony - Musical Rain Visualization Watch raindrops fall and create music! Each drop

This sketch simulates gentle rainfall on a dark blue gradient background, where each raindrop that hits the bottom creates an expanding ripple, a burst of splash particles, and a soft musical note. Clicking anywhere increases the intensity of the rain and unlocks audio playback.

Key Skills:
  • Particle systems
  • Off-screen graphics buffers (createGraphics)
  • HSL color mode
  • p5.Oscillator and p5.Envelope (generative audio)
  • Backwards array iteration with splice()

by Anonymous ยท 390 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
114 Simple MineCraft Cline - p5.js creative coding sketch

Simple MineCraft Cline

This sketch is a playable side-scrolling Minecraft-style sandbox built entirely in p5.js: a Perlin-noise-generated world of grass, dirt, stone, wood and leaves that you can walk across, jump on, dig into, and rebuild block by block using a five-slot hotbar. It supports keyboard, mouse, and on-screen touch controls, and gives audio feedback for jumping, placing, breaking, and selecting blocks using p5.sound oscillators and noise.

Key Skills:
  • 2D tile-grid world representation
  • Perlin noise terrain generation
  • AABB collision detection
  • Side-scrolling camera with clamping
  • Viewport/frustum culling for performance

by Anonymous ยท 390 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
115 AI Excuse Generator - Why I Can't Work Today - p5.js creative coding sketch

AI Excuse Generator - Why I Can't Work Today

This sketch generates a stream of increasingly ridiculous work excuses in floating speech-bubble shapes every time you click. Bubbles drift upward and fade out as they rise, and the pool of excuses escalates from mild to absurd the more you click, tracked by an on-screen counter.

Key Skills:
  • Array of live objects (spawn/update/remove pattern)
  • Alpha transparency and fade-out animation
  • push()/translate()/pop() for local coordinate systems
  • Ternary conditionals for tiered difficulty
  • random() for picking array elements

by Anonymous ยท 389 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
116 Spinning Rainbow Color Wheel - xelsed.ai - p5.js creative coding sketch

Spinning Rainbow Color Wheel - xelsed.ai

This sketch draws a six-wedge rainbow pie chart that rotates continuously in the center of a black canvas. Each wedge is drawn with p5.js's arc() function in PIE mode, and a slowly incrementing rotation angle applied every frame creates the spinning hypnotic effect.

Key Skills:
  • Animation loop with draw()
  • translate() and rotate() transforms
  • arc() in PIE mode
  • For loops for repeated drawing
  • Arrays of p5.Color objects

by Anonymous ยท 389 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
117 FRACTAL GARDEN2 - p5.js creative coding sketch

FRACTAL GARDEN2

This sketch simulates a living cross-section of soil where Perlin-noise nutrients drift and diffuse, seeds fall from the sky and germinate when the ground is fertile enough, and surviving seeds grow into branching plants using L-system turtle graphics. Random events like seed showers, droughts, and blooms periodically reshape the miniature ecosystem, while a scrolling timeline tracks population and soil fertility over time.

Key Skills:
  • 2D grid-based diffusion simulation
  • Perlin noise for organic randomness
  • L-systems and turtle graphics
  • HSB color mode and color mapping
  • State machines (falling/dormant/germinating, alive/decaying)

by Anonymous ยท 387 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
118 AI Inverse Kinematics Tentacle - Snake Chain Animation Mesmerizing snake-like chain that follows yo - p5.js creative coding sketch

AI Inverse Kinematics Tentacle - Snake Chain Animation Mesmerizing snake-like chain that follows yo

This sketch creates a mesmerizing snake-like tentacle made of 15 connected segments that smoothly chases the mouse cursor using inverse kinematics. The tentacle wobbles organically as it moves, colored in a gradient from purple at the head to cyan at the tail, with a glowing circular tip.

Key Skills:
  • Inverse kinematics (IK)
  • Trigonometry with atan2/sin/cos
  • Linear interpolation (lerp/lerpColor)
  • Chained/propagated state
  • Low-pass filtering for smoothing

by Anonymous ยท 387 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
119 AI Theremin Simulator - Spooky Sci-Fi Instrument Move your mouse to play the classic electronic ins - p5.js creative coding sketch

AI Theremin Simulator - Spooky Sci-Fi Instrument Move your mouse to play the classic electronic ins

This sketch turns your mouse into a virtual theremin - moving it left/right changes pitch and up/down changes volume, while a glowing sci-fi visualizer pulses in sync with the sound using p5.sound's Oscillator and Amplitude analyzer.

Key Skills:
  • p5.sound Oscillator
  • p5.Amplitude analysis
  • map() for input scaling
  • Audio-reactive visuals
  • User-gesture audio unlocking

by Anonymous ยท 386 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
120 AI Bongo Drums - Tribal Percussion Instrument Tap the bongos to play! Left drum plays low tone, rig - p5.js creative coding sketch

AI Bongo Drums - Tribal Percussion Instrument Tap the bongos to play! Left drum plays low tone, rig

This sketch draws two 3D-styled bongo drums that you can click or tap to play realistic percussive tones. Each drum reacts to where you hit it with a squashing 'skin depression' animation and a pitch/volume change based on hit accuracy, all wrapped in a warm, spotlighted tribal-themed background.

Key Skills:
  • Object-oriented classes (ES6)
  • p5.Oscillator and p5.Envelope (sound synthesis)
  • Collision/hit detection with dist()
  • Procedural 2D shape drawing (beginShape/vertex, arc, ellipse)
  • Animation via exponential decay

by Anonymous ยท 385 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
121 Rainbow Spirograph - xelsed.ai - p5.js creative coding sketch

Rainbow Spirograph - xelsed.ai

This sketch draws an animated spirograph using the hypotrochoid equation - the classic 'circle rolling inside a circle' curve. A glowing rainbow line is traced point by point onto a persistent off-screen layer, so the pattern slowly builds into an intricate, colorful geometric artwork over time.

Key Skills:
  • Parametric equations (hypotrochoid)
  • HSB color mode and alpha transparency
  • Offscreen graphics buffers (createGraphics)
  • Layered rendering (persistent vs ephemeral drawing)
  • Animation loop and incremental angle stepping

by Anonymous ยท 385 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
122 AI Daydreaming Fish - Dreams of the Ocean - p5.js creative coding sketch

AI Daydreaming Fish - Dreams of the Ocean

This sketch draws a little orange fish swimming back and forth inside a circular bowl, releasing tiny bubbles that drift upward and disappear. Above the bowl, a cloud-shaped thought bubble cycles through three dreams - 'The Ocean', 'Freedom', and 'A Bigger Bowl' - giving the fish a wistful, storytelling quality.

Key Skills:
  • Animation loop (draw)
  • Trigonometric motion with sin()
  • Array management with push() and splice()
  • Randomness with random()
  • Alpha transparency for layered shapes

by Anonymous ยท 384 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
123 Neon Pulse Rings - xelsed.ai - p5.js creative coding sketch

Neon Pulse Rings - xelsed.ai

This sketch creates a mesmerizing tunnel effect using concentric neon-colored rings that continuously expand outward from the center of the screen and fade away. Each ring is a class instance that tracks its own size and transparency, and additive blending makes overlapping rings glow brighter, simulating a neon light effect.

Key Skills:
  • ES6 classes
  • Array management with splice
  • Additive blend mode
  • Alpha fading with map()
  • frameCount-based timing

by Anonymous ยท 384 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
124 Wordle - p5.js creative coding sketch

Wordle

This sketch recreates Wordle, the daily word-guessing game, using object-oriented p5.js code. Players type 5-letter guesses into a grid of boxes and get color-coded feedback (green, yellow, gray) both on the grid and on an on-screen keyboard, until they guess the secret word or run out of six tries.

Key Skills:
  • ES6 classes
  • 2D arrays
  • Keyboard event handling
  • String and array comparison
  • Game state management

by Anonymous ยท 383 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
125 FractalGarden - p5.js creative coding sketch

FractalGarden

This sketch grows a living miniature ecosystem: a shifting band of soil rendered from a nutrient grid that diffuses and regenerates around hidden wells, while seeds drift down through gravity and wind, land in the dirt, and sprout into branching, shape-specific plants that compete for nutrients and space.

Key Skills:
  • 2D array grids
  • Perlin noise
  • HSB color mode
  • Object-oriented classes (Seed, Branch, Plant)
  • p5.Vector math and rotation

by Anonymous ยท 383 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
126 AI Procrastinating Rocket - Countdown with Excuses - p5.js creative coding sketch

AI Procrastinating Rocket - Countdown with Excuses

This sketch draws a cartoon rocket sitting on a launch pad under a bobbing cloud sky, counting down from 10 - but it almost never reaches zero. Every second there's a chance the countdown interrupts itself with a silly excuse ('Wait, did I leave the stove on?'), resets to 10, and tallies up another failed launch attempt.

Key Skills:
  • Timing with millis()
  • Randomness with random()
  • State machine using boolean flags
  • Sine wave motion for idle animation
  • Custom helper functions for drawing

by Anonymous ยท 381 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
127 AI Wind Chimes - Peaceful Garden Sounds Click to make the chimes swing and play! 5 hanging tubes of - p5.js creative coding sketch

AI Wind Chimes - Peaceful Garden Sounds Click to make the chimes swing and play! 5 hanging tubes of

This sketch simulates a set of five hanging wind chime tubes that sway like pendulums and play a soft sine-wave tone whenever you click. Each tube has its own length, pitch, and swing speed, and a painted background of hills, sun, and grass gives the whole scene a peaceful garden feel.

Key Skills:
  • Classes and objects
  • Pendulum/spring physics simulation
  • p5.Oscillator sound synthesis
  • translate/rotate transforms
  • lerp() for interpolation

by Anonymous ยท 379 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
128 AI Ant Journey - Watch the Little Worker - p5.js creative coding sketch

AI Ant Journey - Watch the Little Worker

This sketch animates a lone ant walking across a dirt-colored canvas, steering around rocks, sticks, and puddles as it carries a leaf crumb back to its nest. Every time the ant reaches the nest, a delivery counter increments and a brand new set of obstacles and a starting position are generated, so the little journey repeats forever with a different layout each time.

Key Skills:
  • Steering toward a target with atan2()
  • Local obstacle avoidance using dist()
  • Object literals for lightweight game state
  • push()/pop() and rotate() for oriented drawing
  • Reset/regenerate pattern for procedural levels

by Anonymous ยท 379 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
129 AI Squishy Blob - Poke the Jelly Creature - p5.js creative coding sketch

AI Squishy Blob - Poke the Jelly Creature

This sketch renders a soft, wobbly blob made of 24 connected points that stretches and squishes in response to the mouse. The blob chases your cursor when you click-drag near it, has googly eyes that always look at the mouse, and sits on a smooth pastel gradient background.

Key Skills:
  • beginShape/vertex/endShape custom polygons
  • Spring physics (attraction + damping)
  • Per-vertex force accumulation
  • dist() for proximity/collision-like checks
  • Raw canvas gradients via drawingContext

by Anonymous ยท 379 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
130 Jellyfish Aquarium Attempt - xelsed.ai - p5.js creative coding sketch

Jellyfish Aquarium Attempt - xelsed.ai

This sketch renders a tranquil deep-sea aquarium where glowing jellyfish drift upward and sway through Perlin-noise currents above a hand-painted gradient ocean floor. Soft particles drift like plankton in the background while the jellyfish glow using additive blending, giving them a true bioluminescent look.

Key Skills:
  • HSB color mode
  • Additive blending with blendMode(ADD)
  • Perlin noise for organic motion
  • Offscreen graphics buffers (createGraphics)
  • Object-oriented classes in JavaScript

by Anonymous ยท 379 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
131 AI Coffee Cooling - Watch Your Drink Get Cold - p5.js creative coding sketch

AI Coffee Cooling - Watch Your Drink Get Cold

This sketch simulates a cup of coffee slowly cooling from 180ยฐF down to room temperature, with rising steam that fades as the drink cools and status messages that appear at key temperature thresholds. The cup itself subtly shifts color from a warm tan to a cooler gray-brown as it loses heat, and steam particles are spawned, animated, and removed continuously to create a living, breathing thermal simulation.

Key Skills:
  • Color interpolation with lerpColor
  • Value remapping with map()
  • Particle systems using arrays of objects
  • Reverse iteration for safe array removal
  • Conditional status messages

by Anonymous ยท 378 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
132 AI Day Pie Clock - Time as a Shrinking Pie - p5.js creative coding sketch

AI Day Pie Clock - Time as a Shrinking Pie

This sketch turns the current time of day into a giant pie chart: a dark wedge grows clockwise from midnight to show how much of the day has already passed, while the lighter remaining slice shrinks. The exact time and hours left until midnight are printed in the center, and the remaining slice changes color to orange and then red as the evening gets late.

Key Skills:
  • Drawing pie charts with arc() in PIE mode
  • Reading real-time clock values with hour(), minute(), second()
  • Mapping time into fractions and angles (TWO_PI, HALF_PI)
  • Conditional color changes based on data
  • Centered text rendering with textAlign() and text()

by Anonymous ยท 377 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
133 Iridescent Soap Bubbles - xelsed.ai - p5.js creative coding sketch

Iridescent Soap Bubbles - xelsed.ai

This sketch creates a continuous stream of translucent soap bubbles that spawn near the bottom of the screen, drift upward with a gentle side-to-side wobble, and pop after a random lifespan. Each bubble is rendered with an animated iridescent radial gradient plus a highlight arc, all sitting on top of a soft blue vertical gradient background.

Key Skills:
  • Object-oriented particle systems
  • Canvas2D radial and linear gradients
  • Time-based animation with millis() and deltaTime
  • Fade in/out easing with constrain()
  • Array management (push/splice) for spawning and removing objects

by Anonymous ยท 376 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
134 - xelsed.ai - p5.js creative coding sketch

- xelsed.ai

This sketch animates a glowing gradient ball that bounces around the full browser window, leaving behind a slowly fading trail. It combines classic velocity-based motion with the raw HTML5 Canvas API to create a radial gradient that makes the ball look like a glossy 3D sphere.

Key Skills:
  • Animation loop (setup/draw)
  • Velocity-based motion
  • Collision detection and clamping
  • Alpha transparency for motion trails
  • Canvas 2D drawingContext and radial gradients

by Anonymous ยท 376 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
135 AI Watercolor Canvas - Paint with Soft Blending - p5.js creative coding sketch

AI Watercolor Canvas - Paint with Soft Blending

This sketch turns the browser window into a soft, meditative watercolor canvas where dragging the mouse lays down translucent, overlapping blobs of color that blend naturally with the paper and with each other. A speckled cream paper texture sits underneath, and a row of color-swatch buttons at the bottom lets you switch paint colors or clear the canvas with the C key.

Key Skills:
  • Offscreen graphics buffers (createGraphics)
  • Blend modes (blendMode/MULTIPLY)
  • Random-based organic shapes
  • Layered rendering
  • Color objects and channel extraction (red/green/blue)

by Anonymous ยท 373 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
136 Fractal Forest - p5.js creative coding sketch

Fractal Forest

This sketch simulates a living patch of soil where nutrient-rich earth glows and drifts like breathing tissue, seeds fall from a starry night sky, and germinated seeds grow into branching plants using L-system grammar rules. Dead plants decay, return nutrients as glowing particles, and sometimes spawn spreading fungus, while a scrolling timeline chart tracks population and soil fertility over time.

Key Skills:
  • 2D grid-based simulation
  • Perlin noise for organic drift
  • L-systems (Lindenmayer systems) for procedural plants
  • HSB color mode for smooth gradients
  • ES6 classes for game/simulation objects

by Anonymous ยท 372 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
137 Shawns_Remix - p5.js creative coding sketch

Shawns_Remix

This sketch loads the Betty Botter tongue-twister from a text file, breaks it into individual words, and shuffles them into a fresh random arrangement every time you click. The result is a playful word-remix poem that reflows to fit the browser window.

Key Skills:
  • Loading external text files (preload/loadStrings)
  • String tokenizing (splitTokens)
  • Array shuffling
  • Event-driven redraw with noLoop()
  • Text wrapping and alignment

by Anonymous ยท 372 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
138 AI Ocean Waves - Calming Meditation - p5.js creative coding sketch

AI Ocean Waves - Calming Meditation

This sketch paints a tranquil ocean scene using a vertical sky-to-deep-water gradient behind three overlapping sine-wave shapes. Each wave layer moves at its own speed and height, creating a soft parallax effect that mimics water gently lapping near a shore.

Key Skills:
  • Animation loop (draw)
  • Sine wave motion
  • Canvas gradients via drawingContext
  • Custom shapes with beginShape/vertex/endShape
  • Function parameters for reusable drawing

by Anonymous ยท 371 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
139 AI Rain Window - Meditative Rainfall - p5.js creative coding sketch

AI Rain Window - Meditative Rainfall

This sketch fills the screen with 120 individual raindrops that fall down a softly blurred, gradient night-sky background. Drops sway gently side to side, some slow down and 'stick' partway down leaving a glowing vertical trail behind them, and occasional soft lightning flashes brighten the whole scene.

Key Skills:
  • ES6 Classes and Objects
  • Offscreen Graphics Buffers (createGraphics)
  • Alpha Transparency and Fading
  • Sine Wave Motion
  • Array Filtering to Manage Object Lifetimes

by Anonymous ยท 369 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
140 Glowing Bouncing Ball with Fading Trail - xelsed.ai - p5.js creative coding sketch

Glowing Bouncing Ball with Fading Trail - xelsed.ai

This sketch fills the screen with soft pastel bubbles that rise from the bottom, wobble side to side using Perlin noise, and shimmer with an animated highlight. When a bubble drifts off the top of the screen it 'pops', releasing a small burst of fading particles, while a smooth vertical gradient fills the background behind everything.

Key Skills:
  • ES6 classes
  • Perlin noise animation
  • Particle systems
  • Array splice for object removal
  • Color interpolation with lerpColor

by Anonymous ยท 367 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
141 Starfield Attempt - xelsed.ai - p5.js creative coding sketch

Starfield Attempt - xelsed.ai

This sketch simulates a classic 'warp speed' starfield, where hundreds of stars rush outward from the center of the screen toward the viewer. Each star accelerates as it approaches, and a semi-transparent background creates streaking light trails behind every star, mimicking the visual of a spaceship jumping to lightspeed.

Key Skills:
  • Object-oriented particle systems (classes)
  • Pseudo-3D perspective projection on a 2D canvas
  • p5.Vector for direction
  • Alpha transparency for motion trails
  • The animation loop (draw())

by Anonymous ยท 365 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
142 IrishWristWatchScrable - p5.js creative coding sketch

IrishWristWatchScrable

This sketch takes the tongue-twister 'I wish to wash my Irish wristwatch.' and shatters it into individual letters, scattering each one to a random spot on the canvas. The result looks like the phrase exploded and froze mid-air, with letters floating independently across the screen.

Key Skills:
  • String manipulation (split)
  • Arrays of objects
  • p5.Vector for storing coordinates
  • Random positioning
  • Text rendering with text()

by Anonymous ยท 365 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
143 Sketch 2026-02-13 23:51 - p5.js creative coding sketch

Sketch 2026-02-13 23:51

This sketch builds a mini GTA-style open-world prototype entirely with three.js, using p5.js only as a bootstrapper for setup/preload and a synthetic gunshot sound. A drivable car, a first-person on-foot character with a gun, and 50 wandering NPCs populate a procedurally scattered city of boxy buildings and roads, and pressing 'E' swaps you between driving the car and walking around shooting NPCs with raycasting.

Key Skills:
  • three.js scene graph & THREE.Group composition
  • Perspective camera follow behavior
  • Quaternion-based forward-vector movement
  • Raycasting for hit detection
  • Keyboard input state tracking

by Anonymous ยท 364 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
144 AI Firefly Meadow - Peaceful Night Scene - xelsed.ai - p5.js creative coding sketch

AI Firefly Meadow - Peaceful Night Scene - xelsed.ai

This sketch creates a peaceful animated night meadow where 70 glowing fireflies drift using Perlin noise and gently gravitate toward the mouse cursor, while 100 stars twinkle above against a gradient sky. Soft blur filters and fading trail rectangles give the fireflies a dreamy, organic glow.

Key Skills:
  • Perlin noise for organic motion
  • Vector-based steering behaviors (p5.Vector)
  • Class-based particle systems
  • Color interpolation with lerpColor
  • Alpha-based motion trails

by Anonymous ยท 364 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
145 SKIP - xelsed.ai - p5.js creative coding sketch

SKIP - xelsed.ai

This sketch draws a single pink circle that continuously orbits around the center of the browser window in a smooth elliptical loop. The motion is created purely with trigonometry (sine and cosine) tied to the animation's frame count, and the canvas automatically resizes to fill the entire browser window.

Key Skills:
  • Animation loop (draw)
  • Trigonometric motion with sin() and cos()
  • frameCount as an animation clock
  • Responsive full-window canvas
  • windowResized event handling

by Anonymous ยท 362 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
146 Try to get the highest score! - p5.js creative coding sketch

Try to get the highest score!

This sketch is a 20-second arcade game where you swing a glowing sword across two eerie, eye-tracking space monsters to score points before time runs out. It layers a slowly animated Perlin-noise nebula and twinkling starfield behind the action, and uses custom line-circle collision math to detect sword slashes.

Key Skills:
  • Game state management (start/playing/game over)
  • Custom line-circle collision detection
  • drawingContext shadowBlur for glow effects
  • Perlin noise for animated organic shapes
  • atan2() for pupil/eye tracking

by Anonymous ยท 361 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
147 SystemTest2 - p5.js creative coding sketch

SystemTest2

This sketch splits the screen into four live panels that each demonstrate a different hardware capability p5.js can access: mouse/touch input with ripple effects, device motion and compass sensors, live webcam video, and a microphone-reactive 3D cube rendered with WebGL. It works as an interactive test harness where every quadrant reacts instantly to a different piece of hardware.

Key Skills:
  • createCapture (webcam video)
  • p5.sound AudioIn & Amplitude analysis
  • Off-screen WEBGL graphics with createGraphics
  • Device motion/orientation sensors
  • Touch & mouse event handling

by Anonymous ยท 361 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
148 CatEastHat - p5.js creative coding sketch

CatEastHat

This sketch creates a playful interactive scene where a cartoon cat, controlled by your mouse or finger, chases and 'eats' a randomly placed hat. Once the cat's head gets close enough to the hat, the hat disappears and a fun message appears, letting you click to reset and play again.

Key Skills:
  • Custom drawing functions
  • Collision detection with dist()
  • Boolean state flags
  • Mouse/touch interaction
  • Responsive canvas resizing

by Anonymous ยท 357 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
149 AI Fake Loading Bar - Absurd Excuses Generator - p5.js creative coding sketch

AI Fake Loading Bar - Absurd Excuses Generator

This sketch creates a satirical loading bar that appears to load forever, crawling up to about 87% before slowing to a near-standstill and occasionally slipping backwards. A rotating list of increasingly absurd excuse messages plays underneath, and a 'Cancel' button that mockingly relabels itself 'Nice try' when clicked completes the joke about broken software UX.

Key Skills:
  • Conditional animation speed
  • millis() based timing
  • map() for value scaling
  • Modulo for cycling through an array
  • DOM elements with createButton()

by Anonymous ยท 356 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View
150 SKIPPED - p5.js creative coding sketch

SKIPPED

This sketch creates a peaceful twilight meadow scene with layered grass, twinkling stars, tree silhouettes, and glowing fireflies that drift organically through the air. The scene uses Perlin noise for natural motion, gradient skies, and additive blending to make the fireflies glow convincingly.

Key Skills:
  • Perlin noise for organic animation
  • Blend modes and additive light
  • Depth layering and parallax
  • Sine waves and trigonometric animation
  • Color gradients with lerpColor

by Anonymous ยท 356 views

๐Ÿ“– Read Docs ๐Ÿ‘๏ธ View