π Code Guides - Complete Catalog
Comprehensive table of contents for all 927 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.
927 fully documented sketches Β· Organized by creation date Β· Real concepts from AI-generated docs
| # | Preview | Sketch Details | Actions |
|---|---|---|---|
| 801 |
|
AI Metaball Lava Lamp - Hypnotic Blob Fusion Watch colorful blobs float and merge like a real lavaThis sketch renders a hypnotic lava-lamp effect where 6 softly glowing blobs drift around the screen and smoothly melt into one another whenever they get close. It uses a classic 'metaball' field algorithm - summing the influence of each blob at every pixel - to decide where blob surfaces appear and how their orange-to-magenta color blends.
Key Skills:
|
π Read Docs ποΈ View |
| 802 |
|
AI Flow Field - Perlin Noise Particle Trails Mesmerizing generative art using Perlin noise flow fieThis sketch fills the screen with 2000 tiny particles that drift along an invisible, ever-shifting Perlin noise flow field. Each particle leaves a thin colored trail behind it, and because the field slowly evolves over time, the whole canvas fills with swirling, silk-like ribbons of hue that never quite repeat.
Key Skills:
|
π Read Docs ποΈ View |
| 803 |
|
AI Bongo Drums - Tribal Percussion Instrument Tap the bongos to play! Left drum plays low tone, rigThis 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:
|
π Read Docs ποΈ View |
| 804 |
|
AI Laser Harp - Rainbow Light Instrument Play music with light! Move your mouse across the rainbowThis sketch turns your mouse cursor into a light-triggered instrument by drawing eight vertical, rainbow-colored laser beams across the screen. Moving the cursor through a beam plays a musical note from a C major scale while the beam glows brighter, creating a synesthetic light-and-sound experience.
Key Skills:
|
π Read Docs ποΈ View |
| 805 |
|
AI Raindrop Symphony - Musical Rain Visualization Watch raindrops fall and create music! Each dropThis 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:
|
π Read Docs ποΈ View |
| 806 |
|
AI Bubble Pop - Satisfying Click Game Pop colorful bubbles as they float up! Click bubbles to burstThis sketch creates a satisfying bubble-popping game where colorful bubbles float up from the bottom of the screen. Click any bubble to burst it, trigger a percussion sound that varies with bubble size, and release a particle explosionβall while tracking your score.
Key Skills:
|
π Read Docs ποΈ View |
| 807 |
|
AI Wind Chimes - Peaceful Garden Sounds Click to make the chimes swing and play! 5 hanging tubes ofThis 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:
|
π Read Docs ποΈ View |
| 808 |
|
AI Xylophone - Rainbow Musical Bars Click the colorful bars to play musical notes! A playful xylophThis sketch renders an interactive xylophone with 8 rainbow-colored bars that play notes of a C major scale when clicked. Bars bounce with a spring animation and mallets follow the mouse cursor, all set against a soft gradient background inside a wooden frame.
Key Skills:
|
π Read Docs ποΈ View |
| 809 |
|
SKIP - xelsed.aiThis 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:
|
π Read Docs ποΈ View |
| 810 |
|
AI Theremin Simulator - Spooky Sci-Fi Instrument Move your mouse to play the classic electronic insThis 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:
|
π Read Docs ποΈ View |
| 811 |
|
AI Synth Pad - Interactive Musical Grid Click the colorful pads to play musical tones! A 4x4 grid oThis 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:
|
π Read Docs ποΈ View |
| 812 |
|
Tesseract Portal β 4D Hypercube ProjectionThis sketch renders a 4-dimensional hypercube (tesseract) that rotates through 4D space and gets mathematically projected down into the 3D WEBGL canvas as a glowing wireframe. Dragging the mouse steers the rotation speed, clicking toggles auto-rotation, and pressing R randomizes the spin, making the shape feel like a living portal.
Key Skills:
|
π Read Docs ποΈ View |
| 813 |
|
AI Fractal Tree - Growing Branches in the WindThis sketch procedurally grows a fractal tree from a single trunk into a full branching structure over ten seconds, using recursion to place each generation of branches. Wind is faked with a sine wave so every branch gently sways, and once the tree reaches full depth, green leaf dots appear at every branch tip.
Key Skills:
|
π Read Docs ποΈ View |
| 814 |
|
AI 3D Game of Life - Conway's Automata in SpaceThis sketch simulates Conway's Game of Life extended into three dimensions, animating a rotating 10x10x10 cube of neon-green blocks that live, die, or are born based on their 26 neighboring cells. The whole grid slowly spins in WEBGL 3D space, and clicking the canvas reshuffles the cells to start a fresh evolution.
Key Skills:
|
π Read Docs ποΈ View |
| 815 |
|
AI Magic 8-Ball - Shake for Mystical AnswersThis sketch turns a plain canvas into a glowing, interactive Magic 8-Ball set against a twinkling starfield. Clicking inside the ball makes it wobble like it's being shaken, then a random fortune fades into view inside a translucent blue triangle.
Key Skills:
|
π Read Docs ποΈ View |
| 816 |
|
AI Neon Sign - Type Your Own Glowing TextThis sketch turns any text you type into a glowing neon sign, complete with a flickering animated glow and a dark brick wall backdrop. Click anywhere to cycle through three vibrant neon color palettes, and the sign resizes automatically to fill your browser window.
Key Skills:
|
π Read Docs ποΈ View |
| 817 |
|
AI Emoji Rain - Colorful Emojis Falling from the SkyThis sketch fills the screen with a soft gradient sky and rains colorful emoji characters that fall under gravity, bounce once when they hit the bottom, and then fade away. Clicking anywhere on the canvas triggers a burst of ten new emojis at the cursor, and the whole scene resizes to fill the browser window.
Key Skills:
|
π Read Docs ποΈ View |
| 818 |
|
AI Pixel Canvas - Draw Retro Pixel ArtThis sketch turns the canvas into a 16x16 pixel-art editor: you click or drag across a grid of squares to paint them with a color chosen from an 8-swatch palette at the bottom, and pressing C wipes everything back to white.
Key Skills:
|
π Read Docs ποΈ View |
| 819 |
|
AI Breathing Guide - Calm Your Mind with Visual BreathingThis sketch draws a full-screen meditation aid: a soft glowing circle that smoothly grows and shrinks on a 12-second cycle to guide the viewer's inhale, hold, exhale, and hold. A drifting particle field and a hand-rolled vertical gradient give the whole scene a calm, atmospheric feel.
Key Skills:
|
π Read Docs ποΈ View |
| 820 |
|
AI Fortune Cookie - Crack Open Your AI-Generated DestinyThis sketch draws a golden fortune cookie that cracks open when clicked, splitting into two halves while a paper slip grows out from the center. The fortune text and lucky numbers on that slip are generated live by calling OpenAI's GPT-4o-mini API, so every crack reveals a fresh, AI-written fortune.
Key Skills:
|
π Read Docs ποΈ View |
| 821 |
|
AI Zen Garden - Rake Peaceful Patterns in SandThis sketch turns your browser into a raked sand garden: dragging the mouse carves smooth, ridged grooves into a noise-textured sand background, clicking drops a stone, and pressing R smooths everything back to a fresh, randomly-stoned garden.
Key Skills:
|
π Read Docs ποΈ View |
| 822 |
|
AI Melting Clock - Dali-Inspired Surreal Time DisplayThis sketch draws a Salvador Dali-style 'Persistence of Memory' clock that lives inside a warm sunset-to-purple gradient. The clock face, its hour numbers, and its hands constantly wobble and droop using Perlin noise, while pink drops periodically ooze off the bottom of the clock and fall like melting wax.
Key Skills:
|
π Read Docs ποΈ View |
| 823 |
|
AI Gravity Text - Type Letters That Fall and StackThis sketch turns a simple text input into a live physics playground: every character you type falls from the top of the screen, bounces off the walls and floor, and stacks on top of other letters like Tetris blocks. Pressing SPACE launches the entire pile upward in an explosion before gravity pulls everything back down.
Key Skills:
|
π Read Docs ποΈ View |
| 824 |
|
AI Firework Show - Click to Launch ExplosionsThis sketch creates an interactive fireworks show where clicking anywhere launches a rocket that streaks upward and bursts into a shower of colorful particles. Multiple fireworks can be in flight or exploding simultaneously, and a semi-transparent background creates trailing light streaks against a dark night sky.
Key Skills:
|
π Read Docs ποΈ View |
| 825 |
|
AI Sunrise Animation - Dawn Breaks with StarsThis sketch paints a slow, continuous sunrise: stars twinkle in a deep purple sky, the sky gradient shifts through dawn pinks into daytime blue, a glowing sun climbs from the horizon, wispy clouds catch the light, and a black mountain silhouette frames the whole scene.
Key Skills:
|
π Read Docs ποΈ View |
| 826 |
|
AI Bouncy Ball Drop - Satisfying PhysicsThis sketch lets you click anywhere on the screen to drop a colorful ball that falls under gravity, bounces off the floor and side walls while losing a bit of energy each time, and gradually fades out and disappears. Every click spawns a brand-new independent ball, so rapid clicking fills the screen with a bouncing, fading crowd.
Key Skills:
|
π Read Docs ποΈ View |
| 827 |
|
AI Ocean Waves - Calming MeditationThis 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:
|
π Read Docs ποΈ View |
| 828 |
|
AI Procrastinating Rocket - Countdown with ExcusesThis 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:
|
π Read Docs ποΈ View |
| 829 |
|
AI Coin Flip - Heads or Tails with StatsThis 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:
|
π Read Docs ποΈ View |
| 830 |
|
AI Daydreaming Fish - Dreams of the OceanThis 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:
|
π Read Docs ποΈ View |
| 831 |
|
AI Dying Battery - Watch the Panic UnfoldThis 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:
|
π Read Docs ποΈ View |
| 832 |
|
AI Stopwatch Timer - Clean Start/Stop UtilityThis sketch creates a fully functional digital stopwatch centered on the screen, showing minutes, seconds, and centiseconds in a large monospace font. A green START button and a red STOP button let you begin and pause the timer, with the elapsed time correctly resuming from where it left off.
Key Skills:
|
π Read Docs ποΈ View |
| 833 |
|
AI Moon Phase Display - Tonight's Lunar PhaseThis sketch renders a peaceful night sky filled with 200 twinkling stars alongside a large moon whose illuminated shape and text label update automatically based on today's calendar date. The moon's shadow shrinks and grows across the visual, cycling through all eight named lunar phases as the day of the month changes.
Key Skills:
|
π Read Docs ποΈ View |
| 834 |
|
AI Growing Plant - Seed to Flower JourneyThis sketch animates a plant's entire life cycle in a single continuous ten-second sequence: a brown seed sits in soil, sprouts a green stem, grows two leaves, and finally opens into a six-petaled flower with a glowing yellow center. A text label at the top tracks the current stage (Seed, Sprouting, Growing, Blooming, Full Bloom!) so the viewer always knows where the plant is in its journey.
Key Skills:
|
π Read Docs ποΈ View |
| 835 |
|
AI Clumsy Robot - Watch It Fail at StairsThis sketch animates a small robot that endlessly repeats a four-phase slapstick loop: walking up to a staircase, attempting to climb it, tumbling backward in a dramatic fall, and sheepishly walking back to try again. Speech bubbles ('I got this!' / 'Ow...') and an attempts counter reinforce the comedic, persistent-but-clumsy character.
Key Skills:
|
π Read Docs ποΈ View |
| 836 |
|
AI Coffee Cooling - Watch Your Drink Get ColdThis 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:
|
π Read Docs ποΈ View |
| 837 |
|
AI Excuse Generator - Why I Can't Work TodayThis 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:
|
π Read Docs ποΈ View |
| 838 |
|
AI Day Pie Clock - Time as a Shrinking PieThis 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:
|
π Read Docs ποΈ View |
| 839 |
|
AI Ant Journey - Watch the Little WorkerThis 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:
|
π Read Docs ποΈ View |
| 840 |
|
AI Fake Loading Bar - Absurd Excuses GeneratorThis 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:
|
π Read Docs ποΈ View |
| 841 |
|
AI Rain Window - Meditative RainfallThis 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:
|
π Read Docs ποΈ View |
| 842 |
|
AI Watercolor Canvas - Paint with Soft BlendingThis 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:
|
π Read Docs ποΈ View |
| 843 |
|
AI Squishy Blob - Poke the Jelly CreatureThis 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:
|
π Read Docs ποΈ View |
| 844 |
|
AI Vine Writer - Type to Grow Organic VinesThis sketch turns your keyboard into a gardening tool: every key you press spawns a curving, noise-driven vine that grows upward from your cursor. Vowels blossom into soft pink or gold flowers while consonants sprout leafy green stems, turning typed words into a living, glowing garden on a dark background.
Key Skills:
|
π Read Docs ποΈ View |
| 845 |
|
AI Bubble Pop Game - Click to PopThis sketch creates a playful bubble-popping game where colorful bubbles rise from the bottom of the screen against a soft sky gradient. Clicking a bubble pops it, increases your score, and triggers a quick red flash effect.
Key Skills:
|
π Read Docs ποΈ View |
| 846 |
|
AI Gravity Wells - Orbital Physics Particle Simulation - xelsed.aiThis sketch simulates a starfield where multiple glowing gravity wells pull streams of colorful particles into swirling orbits, spirals, and slingshot trajectories. Particles are continuously spawned from the screen edges and fade into long motion trails as they get flung around by real inverse-square-law gravity. Clicking adds new wells, letting you sculpt increasingly chaotic orbital systems.
Key Skills:
|
π Read Docs ποΈ View |
| 847 |
|
AI Sound Wave Terrain - Interactive Frequency Mesh Visualization - xelsed.aiThis sketch renders an animated 3D-style terrain mesh made of sine waves, where the mouse controls both the frequency of the ripples (X axis) and how tall the peaks and valleys become (Y axis). The mesh is colored with a height-based gradient running from deep blue valleys through cyan and yellow up to fiery orange peaks, giving the impression of a glowing audio-frequency landscape.
Key Skills:
|
π Read Docs ποΈ View |
| 848 |
|
AI Magnetic Field Lines - Iron Filings Physics Visualization - xelsed.aiThis sketch simulates iron filings scattered on paper above hidden magnets, using hundreds of tiny line segments that rotate to align with the combined magnetic field from several invisible poles. Perlin noise adds a gentle organic drift to both the poles and the filings, and clicking the canvas drops in new poles that instantly reshape the field pattern.
Key Skills:
|
π Read Docs ποΈ View |
| 849 |
|
AI Breathing Mandala - Meditative Geometric Animation - xelsed.aiThis 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:
|
π Read Docs ποΈ View |
| 850 |
|
SKIPPEDThis 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:
|
π Read Docs ποΈ View |