📖 Code Guides - Complete Catalog
Comprehensive table of contents for all 822 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.
822 fully documented sketches · Organized by creation date · Real concepts from AI-generated docs
| # | Preview | Sketch Details | Actions |
|---|---|---|---|
| 551 |
|
DRIFT STARS 2026Drift Stars 2026 is a full 3D driving/drifting game built entirely with p5.js's WEBGL renderer. You steer a customizable car through a procedurally-styled city that cycles through time of day and weather, earning drift-combo points while dodging traffic and evading a wanted-level cop chase.
Key Skills:
|
📖 Read Docs 👁️ View |
| 552 |
|
P5.js sketch inspired by: "Tetris blocks"This sketch recreates the classic falling-block puzzle game Tetris entirely in p5.js, complete with seven colored tetromino shapes, rotation, line-clearing, scoring, and a speed-up mechanic. Pieces fall automatically on a timer while arrow keys let the player shift, rotate, and drop them onto a 10x20 grid.
Key Skills:
|
📖 Read Docs 👁️ View |
| 553 |
|
P5.js sketch inspired by: "Diamond grid"This sketch fills the screen with a grid of rotated squares (diamonds) drawn as outlines, and the stroke thickness of each diamond reacts to how close your mouse or finger is to it. The result is a glowing, radar-like ripple of thick and thin lines that follows your pointer across a dark background.
Key Skills:
|
📖 Read Docs 👁️ View |
| 554 |
|
P5.js sketch inspired by: "Yarn ball"This sketch draws a soft, rounded yarn ball made of dozens of translucent arcs layered and gently rotated to look like wound strands of yarn. A loose thread peels off the ball and wiggles its way toward the mouse cursor, and clicking or tapping cycles through four color palettes.
Key Skills:
|
📖 Read Docs 👁️ View |
| 555 |
|
Gold and Purple Lava PitThis sketch simulates a bubbling lava pit that you can drop gold coins into. When a gold particle touches the lava, it turns purple, melts away, and dissolves into a spinning purple vortex that sinks and disappears.
Key Skills:
|
📖 Read Docs 👁️ View |
| 556 |
|
starter thingThis sketch fills the screen with 70 glowing, color-shifting particles that drift, connect into thin constellation lines when they're close together, and leave soft trails behind thanks to a translucent background. Moving the mouse gently tugs nearby particles toward the pointer, and clicking or tapping bursts fresh particles into the scene.
Key Skills:
|
📖 Read Docs 👁️ View |
| 557 |
|
Very broken rubgu.berb machine (I can't spell)This sketch creates an interactive Rube Goldberg machine using the Matter.js physics engine. Clicking the canvas releases a ball that cascades through eleven stages including ramps, seesaws, dominoes, pendulums, and funnels, demonstrating realistic physics interactions and chain reactions across an extended canvas.
Key Skills:
|
📖 Read Docs 👁️ View |
| 558 |
|
P5.js sketch inspired by: "Neural network"This sketch visualizes a living neural network, with layers of nodes connected by weighted lines and animated data packets flowing between them. Watch as pulses of activity travel across the network over time, bringing the structure to life.
Key Skills:
|
📖 Read Docs 👁️ View |
| 559 |
|
zhangCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 560 |
|
open world gameThis sketch is a sprawling GTA-style 3D open-world game built entirely in p5.js WEBGL mode, featuring a walkable/drivable neon Vice-City-inspired map with buildings, palm trees, NPCs you can talk to or shoot, a car you can enter, elevators to rooftops, and a full synthesized sound-effects engine using p5.sound oscillators and envelopes.
Key Skills:
|
📖 Read Docs 👁️ View |
| 561 |
|
P5.js sketch inspired by: "Xylophone"This sketch draws an interactive xylophone with eight colorful bars spanning a C major scale. Clicking, tapping, or pressing mapped keyboard keys (A-K) triggers a soft percussive tone for that bar and makes it flash red briefly to show it was struck.
Key Skills:
|
📖 Read Docs 👁️ View |
| 562 |
|
P5.js sketch inspired by: "Vinyl scratch"This sketch draws a richly detailed vinyl record - complete with concentric grooves and colored labels - sitting on a dark background, alongside a tonearm that glides smoothly toward wherever you click or drag. Interacting with the record actually drives a live p5.sound oscillator and white-noise generator, so the pitch and scratchy texture of the sound change as you move the mouse across the disc.
Key Skills:
|
📖 Read Docs 👁️ View |
| 563 |
|
Object show where the Animation looks real andThis sketch fuses three.js 3D rendering with the p5.js draw loop to build an orbiting 'object show' scene: a golden trophy sits at the center while a soda cup, remote, PlayStation 5, salt lamp, and a McDonald's arc spin around it, each animated with GSAP. Text overlays render 'Animation 2024' and a randomly generated elimination result on top of the WebGL scene.
Key Skills:
|
📖 Read Docs 👁️ View |
| 564 |
|
Skibidi Toilet Battle (Three Titans)Creative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 565 |
|
Skibidi Toilet BattleCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 566 |
|
More orbiting objects orbiting around the supernovaThis sketch renders a glowing, pulsing supernova at the center of the canvas surrounded by orbiting particles, meteorites, comets, and drifting nebula clouds, topped with a simple cartoon face. Clicking the canvas cycles through 33 color palettes and animation 'moods', and after enough clicks the whole scene explodes and dramatically reforms.
Key Skills:
|
📖 Read Docs 👁️ View |
| 567 |
|
I lost the index.ejs of my project, will you helpThis sketch simulates a fictional 'city investment' and task-reward game entirely in the browser, using p5.js only to draw a small stats readout while HTML buttons and divs (created with createButton and createDiv) handle all the real interaction. Clicking buttons lets a mock user join cities, complete tasks, and spin a weighted roulette wheel, all while a plain object (mockUser) tracks balance, gems, and daily limits in memory.
Key Skills:
|
📖 Read Docs 👁️ View |
| 568 |
|
ca gam but i made it 3d lolThis sketch creates a 3D top-down car racing game where you steer your blue car between lanes to avoid red obstacle cars. The entire game world is rendered in 3D using WEBGL, tilted at a camera angle to create depth, while you accumulate points for surviving.
Key Skills:
|
📖 Read Docs 👁️ View |
| 569 |
|
DRIFT STARS 2Drift through a neon-soaked cyberpunk city in a sleek 3D car, with glowing skyscrapers, rain, and particle effects lighting up the night. Switch modes, trigger nitro and EMP blasts, and dodge cops and obstacles as the camera swoops cinematically around your high-speed chaos.
Key Skills:
|
📖 Read Docs 👁️ View |
| 570 |
|
Clash Royale (PrincessCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 571 |
|
topview files v15This file is a deliberately empty placeholder that exists only to satisfy the loading order in index.html. It contains no drawing code, variables, or functions of its own - every real piece of this top-down game (setup, draw loop, physics, AI, UI) lives in fifteen other separate .js files that load before it.
Key Skills:
|
📖 Read Docs 👁️ View |
| 572 |
|
make your own heroThis sketch builds an RPG-style hero creation screen using p5.js DOM elements (a text input and buttons) layered on top of canvas drawing. Players type a hero name, spend a pool of skill points on four stats, and watch a simple hand-drawn warrior illustration on the canvas, then click 'Start Battle' to switch to a second game-state screen.
Key Skills:
|
📖 Read Docs 👁️ View |
| 573 |
|
elastic Eric but worst and better idkThis sketch creates a highly interactive 3D character named Elastic Eric that stretches and deforms under drag interactions, with a special 'puddle mode' that melts the character into a liquid-like state inside a glass bowl. The character features a procedurally-generated spherical head mesh, articulated limbs with physics, facial animations including blinking and talking, and responsive haptic feedback on mobile devices.
Key Skills:
|
📖 Read Docs 👁️ View |
| 574 |
|
P5.js sketch inspired by: "Morphing shapes"This sketch continuously morphs a glowing white superformula shape at the center of the screen, leaving soft trails as it shifts between flower-like and star-like forms. The animation responds to your window size, always filling the space with a smooth, hypnotic outline.
Key Skills:
|
📖 Read Docs 👁️ View |
| 575 |
|
P5.js sketch inspired by: "Lighthouse beam"This sketch paints a calm nighttime seascape with a tall lighthouse casting a soft, rotating beam of light across the ocean. Watch as the glowing beam slowly sweeps around the scene, illuminating the dark horizon.
Key Skills:
|
📖 Read Docs 👁️ View |
| 576 |
|
P5.js sketch inspired by: "Abstract waves"This sketch layers 20 semi-transparent, glowing wave lines that ripple across a dark night-sky background, each wave moving at its own speed and phase to create a hypnotic, ocean-like animation. The canvas automatically reshapes itself whenever the browser window is resized.
Key Skills:
|
📖 Read Docs 👁️ View |
| 577 |
|
P5.js黑色背景环形发光粒子鱼动画,12000粒子,带底部水面倒影,左上角显示三角函数公式,粒子黄青渐变发光,时间变量t驱动鱼持续摆动游动This sketch renders a swimming fish built entirely out of 12,000 glowing particles arranged in a polar-coordinate ring, with a distorted body wave and a wiggling tail. A flipped, semi-transparent copy of the fish is drawn below it to simulate a water reflection, and the whole animation runs on a black canvas with additive color blending for a neon glow.
Key Skills:
|
📖 Read Docs 👁️ View |
| 578 |
|
7364 games in oneThis sketch turns a single number - the 'game ID' - into an entire generated mini-game: a colored background, a bouncing shape (circle, square, or line), and its size and speed, all deterministically derived from that number using a seeded random generator. Clicking or tapping picks a brand new random game ID and rebuilds the whole scene instantly.
Key Skills:
|
📖 Read Docs 👁️ View |
| 579 |
|
p5js.ai is super coolThis sketch displays a spinning 3D cube in WEBGL mode with glowing text wrapped around all six faces. The text "p5js.ai is super cool" shimmers with soft yellow-orange neon light created by layered glow effects, while the cube continuously rotates on three axes. An epilepsy warning overlay appears on load and must be dismissed before the animation begins.
Key Skills:
|
📖 Read Docs 👁️ View |
| 580 |
|
nie nieCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 581 |
|
Eatmoji (Remix)Creative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 582 |
|
Particle system that follows the mouseCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 583 |
|
Bouncing ball animationCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 584 |
|
Ant Battle V3Creative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 585 |
|
P5.js sketch inspired by: "Expectation vs reality Waterfall"This sketch paints a moody nighttime waterfall scene using a custom Particle class: hundreds of small glowing droplets are continuously spawned at a rocky ledge, fall and drift under simulated gravity, fade out, and disappear into a misty pool below. Static rock shapes and layered semi-transparent mist ellipses frame the falling water for a soft, atmospheric effect.
Key Skills:
|
📖 Read Docs 👁️ View |
| 586 |
|
Peter pan game real gameThis sketch is a complete side-scrolling flight game where you control Peter Pan, flapping upward with the W or Up Arrow key to dodge pirates and collect pixie dust for points. It features a parallax scrolling Neverland background, custom hand-drawn characters built from primitive shapes, simple circle-based collision detection, and a full start/playing/game-over state machine.
Key Skills:
|
📖 Read Docs 👁️ View |
| 587 |
|
very weird sketchThis sketch creates an interactive space-themed collector game where a player-controlled spaceship chases and collects randomly generated alien critters floating across the canvas. The critters move organically using Perlin noise and display in various colorful shapes—polygons, blobs, and stars—while the player earns points for each successful collection.
Key Skills:
|
📖 Read Docs 👁️ View |
| 588 |
|
paintletCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 589 |
|
potato ai 2.0 OFFICAL (Remix)ایک گاؤں میں علی نام کا ایک غریب مگر محنتی لڑکا رہتا تھا۔ اس کا خواب تھا کہ وہ ایک کامیاب انسان بنے اور اپنے والدین کا نام روشن کرے۔ ہر روز وہ صبح سویرے اٹھتا، پڑھائی کرتا اور اپنے والد کے ساتھ کھیتوں میں بھی کام کرتا۔ گاؤں کے کچھ لوگ اس کا مذاق اڑاتے اور کہتے کہ اتنی محنت کا کوئی فائدہ نہیں۔ مگر علی نے کبھی ہمت نہیں ہاری۔ وہ جانتا تھا کہ مسلسل محنت ایک دن ضرور رنگ لائے گی۔ کئی سال بعد علی نے اپنی تعلیم مکمل کی اور ایک کامیاب انجینئر بن گیا۔ جب وہ اپنے گاؤں واپس آیا تو وہی لوگ اس کی کامیابی پر
Key Skills:
|
📖 Read Docs 👁️ View |
| 590 |
|
AI Fractal Explorer - Infinite Mandelbrot Zoom Explore infinite mathematical beauty! Click to zoom (Remix)This sketch renders the Mandelbrot set pixel-by-pixel using complex number iteration, then paints it with an animated psychedelic color palette. You can click to zoom in, drag to pan, scroll to zoom smoothly, and press K to toggle an ambient audio drone that reacts to the exploration.
Key Skills:
|
📖 Read Docs 👁️ View |
| 591 |
|
Gizmo escapes V1.0In real life I have a bunny called Gizmo he's a cool guy so I decided to create a funny game called Gizmo escapes it's a game where you have to collect bananas oranges apples lettuce and carrots but you have to jump over these obstacles it's a pretty fun game the character looks a little weird but still kind of looks like a bunny hope you guys enjoy this game and I will create some updates for this one too
Key Skills:
|
📖 Read Docs 👁️ View |
| 592 |
|
Preview Not Available Preview expired or not foundCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 593 |
|
Find All StarsCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 594 |
|
emmanuelThis sketch builds a 3D WEBGL alley scene where a simple animated character runs in, spray-paints a wall, turns to deliver a warning, and runs off, revealing two lines of neon lime-and-cyan 3D extruded text (EMMANUEL SEDANO) that pop in with paint drips running down the wall.
Key Skills:
|
📖 Read Docs 👁️ View |
| 595 |
|
Particle system that follows the mouseThis sketch creates a continuous stream of colorful particles that trail behind the mouse cursor, drifting upward under a light gravity pull before fading away. Clicking the mouse triggers an 80-particle explosion at the cursor and cycles the background through three animated color-gradient themes.
Key Skills:
|
📖 Read Docs 👁️ View |
| 596 |
|
smiley face buttonsThis sketch arranges eight rotating, blinking smiley-face circles around eight white squares filled with unique animated line patterns, all rendered in HSB color mode so each face's hue drifts through the rainbow over time. Hovering grows a face, clicking it triggers a squash-and-bounce animation plus an expanding rainbow ripple, while every square's internal lines are drawn onto an offscreen buffer and clipped so they never spill past its edges.
Key Skills:
|
📖 Read Docs 👁️ View |
| 597 |
|
Simon SaysCreative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |
| 598 |
|
Can you make it so that when he drinks the energyThis sketch brings to life an interactive cartoon robot with blinking, color-cycling eyes, ragdoll arms you can grab and fling, and a torso you can zap by clicking a lightning emoji. It also lets you drag an energy drink can or a burger into its mouth to trigger eating animations, sound effects, and comic-style speech bubbles that react to whatever you just did.
Key Skills:
|
📖 Read Docs 👁️ View |
| 599 |
|
Chess game but its using medieval charactersThis sketch is a fully playable chess game rendered with hand-drawn medieval characters instead of standard chess symbols - archers for pawns, castles for rooks, horsemen for knights, wizards for bishops, a sorceress for the queen, and a warlord king. You play white against a simple AI that plays black, and captures trigger themed projectile animations (arrows, boulders, holy light, fireballs, and sword slashes).
Key Skills:
|
📖 Read Docs 👁️ View |
| 600 |
|
"Welcome to Sketchbook to Screen Student Exhibition" (Remix)Creative coding sketch
Key Skills:
|
📖 Read Docs 👁️ View |