πŸ“– 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
351 Chess game but its using medieval characters - p5.js creative coding sketch

Chess game but its using medieval characters

This 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:
  • 2D array board representation
  • Move generation and legality rules
  • Check/checkmate/stalemate detection
  • Simple material-based AI evaluation
  • Animation with lerp() and frame counters

by david w Β· 79 views

πŸ“– Read Docs πŸ‘οΈ View
352 Pool table game that is real pool - p5.js creative coding sketch

Pool table game that is real pool

This sketch is a fully playable 8-ball pool game built entirely in p5.js: fifteen numbered balls are racked on a felt table, and the player click-drags away from the white cue ball to aim and shoot. It includes real elastic ball-to-ball collisions, rail bounces, pocket detection, scratch handling, and a simple win/lose condition around sinking the 8-ball.

Key Skills:
  • Elastic collision physics with normal/tangent vector decomposition
  • p5.Vector for aiming direction and shot power
  • Plain JavaScript objects as lightweight game entities
  • Game state management (aiming, scratches, game over)
  • Mouse and touch input unified through wrapper functions

by david w Β· 87 views

πŸ“– Read Docs πŸ‘οΈ View
353 v-22 - p5.js creative coding sketch

v-22

This sketch draws a detailed top-down illustration of a V-22 Osprey tiltrotor aircraft using layered p5.js shapes - fuselage, tail booms, tapered wings, engine nacelles, three-blade proprotors, and surface markings all built from rects, custom polygons, and ellipses.

Key Skills:
  • push/pop transform stacks
  • translate, rotate and scale
  • custom polygons with beginShape/vertex
  • rectMode(CENTER) for symmetric layouts
  • for loops driving repeated rotated shapes

by david Β· 50 views

πŸ“– Read Docs πŸ‘οΈ View
354 topview files v15 - p5.js creative coding sketch

topview files v15

This 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:
  • Script loading order
  • Separation of concerns
  • Global scope across files
  • Code organization for large sketches
  • DOM script tags

by truthdebates Β· 86 views

πŸ“– Read Docs πŸ‘οΈ View
355 Grand Karting: Breath of the Wild - p5.js creative coding sketch

Grand Karting: Breath of the Wild

This sketch builds a full 3D go-kart racing game using Three.js (loaded alongside p5.js, though p5 itself is barely used). You drive a kart around a looping curved track, drift around corners, launch off ramps, glide through the air, grind along rails, and wall-ride while a day/night cycle sweeps across the sky.

Key Skills:
  • Three.js scene graph (Scene, Mesh, Group)
  • Curve-based geometry generation (CatmullRomCurve3, TubeGeometry)
  • Manual velocity/rotation physics
  • requestAnimationFrame game loop
  • Keyboard input state tracking

by Maddala Royals Β· 114 views

πŸ“– Read Docs πŸ‘οΈ View
356 Crea un animazione stile stickman di uno schermo - p5.js creative coding sketch

Crea un animazione stile stickman di uno schermo

This sketch tells a short animated story with a stick figure using a computer: it boots up, opens a browser, searches for a real person, edits their Wikipedia page with a made-up fact, saves the edit, and finally displays a message explaining that this is 'disinformation' or 'digital vandalism'. Every scene change is driven by a finite-state machine, and a virtual mouse pointer glides smoothly across the screen using vector interpolation.

Key Skills:
  • Finite-state machine (switch/case)
  • Frame-based timers for sequencing animation
  • Vector interpolation (p5.Vector.lerp) for smooth movement
  • Typewriter text effect via substring()
  • Trigonometric animation (sin) for arm waving

by MangoPanda28 Β· 76 views

πŸ“– Read Docs πŸ‘οΈ View
357 Crea un animazione stile stickman che racconta - p5.js creative coding sketch

Crea un animazione stile stickman che racconta

This sketch tells the true story of footballer Antonio Puerta through a sequence of six animated stickman scenes - a football match, medical collapse, hospitalization, and passing - each driven by a simple state machine that advances automatically based on elapsed frames. Stickmen are drawn with rotate() and push()/pop() to animate limbs, while map() and lerp() interpolate positions, fades, and pulsing monitor lines to narrate the story visually.

Key Skills:
  • Finite state machine for scene sequencing
  • Time-based animation with frameCount
  • Character rigging with rotate() and push()/pop()
  • Interpolation with map() and lerp()
  • Alpha transparency for fades

by MangoPanda28 Β· 65 views

πŸ“– Read Docs πŸ‘οΈ View
358 Hack The Hood Mini App - p5.js creative coding sketch

Hack The Hood Mini App

EDUMATE is a full study-tracking web app built entirely with p5.js DOM elements and canvas drawing: it has login/register screens, a dashboard with a bar chart of weekly study time, a freehand whiteboard with an AI math tutor, a general AI chat, and a profile page. Instead of shapes bouncing around, the 'visuals' here are UI screens drawn with rect(), line(), lerpColor() gradients and text(), switched by a simple state machine.

Key Skills:
  • p5.js DOM elements (createButton, createInput, createSlider)
  • State machine with a switch statement
  • Gradient backgrounds with lerpColor()
  • Freehand drawing with beginShape()/vertex()
  • Async/await and fetch() for AI API calls

by PrismOtter30 Β· 64 views

πŸ“– Read Docs πŸ‘οΈ View
359 P5.js sketch inspired by: "Abstract waves" - p5.js creative coding sketch

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:
  • Animation loop with frameCount
  • Sine wave motion (sin())
  • HSB color mode for palette design
  • Custom shapes with beginShape/vertex/endShape
  • Parallel arrays for per-object properties

by corbun Β· 80 views

πŸ“– Read Docs πŸ‘οΈ View
360 Tornado intercept simulator by corbun - p5.js creative coding sketch

Tornado intercept simulator by corbun

This sketch simulates driving a small armored vehicle across a huge scrolling farmland toward a swirling, animated tornado. You steer with the keyboard or on-screen buttons, then must time the deployment of airbags and ground spikes so the car is fully anchored before it drifts into the tornado's dangerous wind field, scoring 'intercept time' for every second you survive safely close to the storm.

Key Skills:
  • p5.Vector physics (acceleration, friction, velocity)
  • Camera scrolling via translate()/push()/pop()
  • Object-oriented design with ES6 classes
  • Timer-driven state machines (deltaTime/millis)
  • Procedural world generation with random()

by corbun Β· 351 views

πŸ“– Read Docs πŸ‘οΈ View
361 DRIFT STARS 2026 - p5.js creative coding sketch

DRIFT STARS 2026

Drift 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:
  • WEBGL 3D rendering in p5.js
  • Class-based architecture (Vehicle, Camera, AudioSystem)
  • Vector math with p5.Vector (add, sub, limit, lerp)
  • Finite state machine for game screens
  • Particle systems (smoke, fire, explosions)

by TurboOctopus58 Β· 100 views

πŸ“– Read Docs πŸ‘οΈ View
362 Gun game - p5.js creative coding sketch

Gun game

This sketch is a full first-person shooter built with three.js for 3D rendering while p5.js supplies procedural gunshot sounds through p5.sound. You move through an arena with WASD, look around with the mouse via Pointer Lock, and fight off waves of AI enemies that chase and shoot back until either you or all the AIs are defeated.

Key Skills:
  • Mixing p5.js with an external 3D library (three.js)
  • First-person camera controls with PointerLockControls
  • Raycasting for collision detection and hit-scan style checks
  • Real-time game loop with requestAnimationFrame and delta time
  • Object arrays for managing bullets and AI enemies

by NeonPanda79 Β· 143 views

πŸ“– Read Docs πŸ‘οΈ View
363 P5.js sketch inspired by: "Yarn ball" - p5.js creative coding sketch

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:
  • push()/pop() transform isolation
  • translate() and rotate() for polar-style drawing
  • arc() for drawing partial circles
  • Sine/cosine-driven animation with frameCount
  • beginShape()/vertex()/endShape() for custom curves

by Corban Machen Β· 88 views

πŸ“– Read Docs πŸ‘οΈ View
364 Sketch 2026-07-10 09:04 - p5.js creative coding sketch

Sketch 2026-07-10 09:04

This sketch builds a full 1v1 (or 1v1v-AI) top-down soccer game using Matter.js for physics and p5.js for rendering. Players and a ball are circular Matter.js bodies that collide realistically, while p5.js draws the field, players, ball, score, timer, and menu screens on top of the physics simulation.

Key Skills:
  • Matter.js physics engine integration
  • Game state machines
  • Collision sensors and events
  • Vector-based force application
  • Simple sports AI (seek/defend/attack)

by Purav Mehta Β· 56 views

πŸ“– Read Docs πŸ‘οΈ View
365 3d blackhole - p5.js creative coding sketch

3d blackhole

This sketch renders a glowing 3D black hole in WEBGL, surrounded by a swirling ring of colorful accretion-disk dust particles and a parallax starfield. Moving the mouse drags a custom glowing cursor orb that is itself pulled toward the black hole's gravity, visually reinforcing the sense of being sucked into deep space.

Key Skills:
  • WEBGL 3D rendering (sphere, torus)
  • Vector-based physics (steering + gravity)
  • Class-based particle systems
  • Color interpolation with lerpColor
  • Polar-to-Cartesian coordinate conversion

by corbun Β· 121 views

πŸ“– Read Docs πŸ‘οΈ View
366 open world game - p5.js creative coding sketch

open world game

This 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:
  • WEBGL 3D transforms (translate/rotate/push/pop)
  • Custom lighting (ambientLight, directionalLight, pointLight)
  • Third-person orbit camera math (yaw/pitch spherical coordinates)
  • AABB collision detection and sliding resolution
  • Synthesized audio with p5.Oscillator and p5.Envelope

by NeonCactus38 Β· 97 views

πŸ“– Read Docs πŸ‘οΈ View
367 P5.js sketch inspired by: "Xylophone" - p5.js creative coding sketch

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:
  • Arrays of objects
  • p5.Oscillator and p5.Envelope (ADSR)
  • MIDI note to frequency conversion
  • Event handling (mouse, touch, keyboard)
  • millis() for timed visual feedback

by corbun Β· 93 views

πŸ“– Read Docs πŸ‘οΈ View
368 Volleyball where the different sections of the - p5.js creative coding sketch

Volleyball where the different sections of the

This sketch draws a giant rotating volleyball made of six colored panels, decorated with sparkling glitter particles and seams, that spins on its own and speeds up when you drag it with the mouse. Clicking or auto-spawning intervals shoot little five-pointed stars outward from the center for extra sparkle.

Key Skills:
  • push()/pop() transform isolation
  • translate() and rotate() for object-centered spinning
  • HSB colorMode for hue animation
  • Particle systems with arrays of objects
  • Custom shapes with beginShape()/vertex()/endShape()

by Anonymous Β· 57 views

πŸ“– Read Docs πŸ‘οΈ View
369 Gold and Purple Lava Pit - p5.js creative coding sketch

Gold and Purple Lava Pit

This 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:
  • ES6 classes and objects
  • State machines
  • Array management with push/splice
  • Collision detection
  • push()/pop() transforms and rotate()

by Anonymous Β· 96 views

πŸ“– Read Docs πŸ‘οΈ View
370 P5.js sketch inspired by: "Expectation vs reality Waterfall" - p5.js creative coding sketch

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:
  • Particle systems
  • ES6 classes and objects
  • Array iteration and safe removal with splice()
  • Alpha transparency and fading
  • Simulated gravity/acceleration

by corbun Β· 96 views

πŸ“– Read Docs πŸ‘οΈ View
371 spot for all of his lifeπŸ’― - p5.js creative coding sketch

spot for all of his lifeπŸ’―

This sketch loads a single image over the network and displays it full-screen, cropped to fill the window while preserving its aspect ratio. A dark bar at the top overlays a live countdown showing elapsed and remaining minutes out of an enormous configured total, updating every frame in real time.

Key Skills:
  • Asynchronous image loading with callbacks
  • State machines using boolean flags
  • Aspect-ratio-preserving 'cover' scaling
  • millis() for real-time elapsed time
  • Responsive canvases with windowResized()

by corbun Β· 143 views

πŸ“– Read Docs πŸ‘οΈ View
372 Preview Not Available Preview expired or not found - p5.js creative coding sketch

Preview Not Available Preview expired or not found

This sketch loads a fullscreen night-time photo from Unsplash and displays it scaled to cover the entire browser window, while a translucent bar at the top counts elapsed and remaining minutes of an enormous (nearly endless) 7.889 million minute timer.

Key Skills:
  • Asynchronous image loading with callbacks
  • Boolean state flags for conditional rendering
  • Aspect ratio math for scaling images
  • Responsive canvas resizing
  • Text formatting with nf()

by Anonymous Β· 68 views

πŸ“– Read Docs πŸ‘οΈ View
373 Bouncing ball animation - p5.js creative coding sketch

Bouncing ball animation

This sketch animates a colorful ball that bounces around the full browser window, changing color and playing a percussive noise burst every time it hits an edge. A continuous sine wave drone plays in the background, and arrow keys let the viewer speed up or slow down the ball in any direction.

Key Skills:
  • Animation loop (draw)
  • Collision detection with canvas edges
  • Audio synthesis with p5.sound (Oscillator, Noise, Envelope)
  • Keyboard input handling
  • Responsive canvas resizing

by QuantumSquid51 Β· 116 views

πŸ“– Read Docs πŸ‘οΈ View
374 spot - p5.js creative coding sketch

spot

This sketch renders a still, storybook-style graveyard scene: a soft gradient sky, a green ground plane, and a single rounded gravestone engraved with the word 'SPOT'. Everything is drawn once and left static, like a painted illustration rather than an animation.

Key Skills:
  • Static rendering with noLoop()
  • Color blending with lerpColor()
  • Per-pixel gradient loops
  • Shape composition with push()/translate()/pop()
  • Responsive canvas with windowResized()

by Corban Machen Β· 89 views

πŸ“– Read Docs πŸ‘οΈ View
375 P5.js sketch inspired by: "Vinyl scratch" - p5.js creative coding sketch

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:
  • p5.sound Oscillator and Noise
  • push()/pop() with translate() and rotate()
  • lerp() for easing animation
  • map() and constrain() for input mapping
  • Distance-based collision detection with dist()

by corbun Β· 90 views

πŸ“– Read Docs πŸ‘οΈ View
376 Sketch 2026-07-07 23:54 - p5.js creative coding sketch

Sketch 2026-07-07 23:54

This sketch builds an animated splash/branding screen for a school (IBMT Zinder), featuring a logo that draws itself with an ease-out animation, a slogan that fades in, and a subtly pulsing call-to-action text. It relies entirely on p5.js's text and shape primitives combined with frame-based animation timers rather than any physics or particles.

Key Skills:
  • Frame-based animation progress (0 to 1)
  • Easing functions (easeOutCubic)
  • Text rendering and alignment
  • Responsive layout with windowWidth/windowHeight
  • Alpha/opacity fade-in using map()

by Kebi Salissou Β· 49 views

πŸ“– Read Docs πŸ‘οΈ View
377 mom please don't put down spot - p5.js creative coding sketch

mom please don't put down spot

This sketch paints a full-screen cartoon sunset scene with a gradient sky, a glowing sun, warm-toned ground, and a spotted white dog named Spot lying peacefully in the foreground, his chest rising and falling with a subtle breathing animation.

Key Skills:
  • Per-pixel color gradients with lerpColor()
  • Layered transparency for glow effects
  • push()/pop()/translate()/scale() for nested drawing groups
  • Sine wave animation for organic movement
  • frameCount-driven continuous animation

by corbun Β· 105 views

πŸ“– Read Docs πŸ‘οΈ View
378 I lost the index.ejs of my project, will you help - p5.js creative coding sketch

I lost the index.ejs of my project, will you help

This 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:
  • DOM manipulation with createButton/createDiv
  • Event handlers (mousePressed, mouseOver, mouseOut)
  • Weighted random selection
  • Object-based state management
  • Array methods (reduce, filter, includes, splice)

by Bitrex Ke Β· 85 views

πŸ“– Read Docs πŸ‘οΈ View
379 Very smart chatbot - p5.js creative coding sketch

Very smart chatbot

This sketch throws out the canvas and instead builds an entire chat application using p5.js DOM functions - a title, description, scrolling message history, text input, and Send button - then powers a rule-based 'Smart Chatbot' that replies using regular expressions, remembered state, and a tiny built-in calculator. Tucked inside draw() is also a fully-coded particle constellation animation that never actually appears, because style.css hides the canvas element entirely.

Key Skills:
  • p5.js DOM element creation
  • Event listeners and callbacks
  • Regular expressions for text parsing
  • State management with global variables
  • Array iteration and higher-order functions

by corbun Β· 92 views

πŸ“– Read Docs πŸ‘οΈ View
380 P5.jsι»‘θ‰²θƒŒζ™―ηŽ―ε½’ε‘ε…‰η²’ε­ι±ΌεŠ¨η”»οΌŒ12000η²’ε­οΌŒεΈ¦εΊ•ιƒ¨ζ°΄ι’ε€’ε½±οΌŒε·¦δΈŠθ§’ζ˜Ύη€ΊδΈ‰θ§’ε‡½ζ•°ε…¬εΌοΌŒη²’ε­ι»„ι’ζΈε˜ε‘ε…‰οΌŒζ—Άι—΄ε˜ι‡tι©±εŠ¨ι±ΌζŒη»­ζ‘†εŠ¨ζΈΈεŠ¨ - p5.js creative coding sketch

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:
  • Polar coordinates
  • Sine wave animation
  • Additive blend mode (glow effect)
  • Classes and objects
  • push()/pop() transformations

by PixelWizard69 Β· 94 views

πŸ“– Read Docs πŸ‘οΈ View
381 Peter pan game real game - p5.js creative coding sketch

Peter pan game real game

This 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:
  • Game state machines (switch statements)
  • Object-oriented programming with ES6 classes
  • Gravity and velocity-based physics
  • Circle-circle collision detection with dist()
  • Parallax scrolling backgrounds

by peolker Β· 87 views

πŸ“– Read Docs πŸ‘οΈ View
382 make your own hero - p5.js creative coding sketch

make your own hero

This 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:
  • p5.js DOM elements (createInput, createButton)
  • Game state machine with a string variable
  • Object-oriented data modeling (hero object with nested stats)
  • push()/pop()/translate()/scale() for composite drawings
  • Synchronizing DOM element positions with a resizable canvas

by peolker Β· 88 views

πŸ“– Read Docs πŸ‘οΈ View
383 space hero - p5.js creative coding sketch

space hero

This sketch is a full boss-battle mini-game: an armored archer slides left and right across a glowing sci-fi citadel, firing energy arrows upward at a cybernetic space wolf that patrols the sky and lobs plasma blasts back. A cinematic typewriter cutscene, parallax starfield, particle bursts, floating damage numbers and procedurally synthesized sound effects turn a simple shooting-gallery loop into a mini cinematic experience.

Key Skills:
  • Game state machine
  • Object-literal game entities
  • Particle systems
  • Collision detection with dist()
  • Screen shake camera effect

by peolker Β· 75 views

πŸ“– Read Docs πŸ‘οΈ View
384 P5.js sketch inspired by: "Umbrella rain" - p5.js creative coding sketch

P5.js sketch inspired by: "Umbrella rain"

This sketch fills the screen with hundreds of individually animated raindrops that fall at different speeds based on a simulated depth value, creating a parallax rain effect over a dark stormy sky. Three simple umbrellas sit along the bottom of the canvas, and everything reflows automatically when the browser window is resized.

Key Skills:
  • ES6 classes and objects
  • Arrays of custom objects
  • map() for value conversion
  • Simulated depth/parallax with a z property
  • Animation loop (draw)

by optional Β· 103 views

πŸ“– Read Docs πŸ‘οΈ View
385 Object show where the Animation looks real and - p5.js creative coding sketch

Object show where the Animation looks real and

This 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:
  • Three.js + p5.js canvas sharing
  • GSAP tweening
  • THREE.OrbitControls camera interaction
  • WebGL lighting and shadows
  • THREE.Shape / ExtrudeGeometry

by TurboFalcon70 Β· 95 views

πŸ“– Read Docs πŸ‘οΈ View
386 starter thing - p5.js creative coding sketch

starter thing

This 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:
  • Particle systems with plain objects
  • HSB color mode and hue cycling
  • Translucent backgrounds for motion trails
  • dist() for proximity/collision-style checks
  • Default parameters in functions

by corbun Β· 88 views

πŸ“– Read Docs πŸ‘οΈ View
387 7364 games in one - p5.js creative coding sketch

7364 games in one

This 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:
  • Seeded randomness (randomSeed)
  • Deterministic procedural generation
  • Global state variables
  • Animation loop (draw)
  • Collision/bounce detection

by corbun Β· 83 views

πŸ“– Read Docs πŸ‘οΈ View
388 Crossy rpad - p5.js creative coding sketch

Crossy rpad

This sketch recreates the classic Crossy Road game: a red square hops between lanes of grass, traffic, and water, riding logs and dodging cars while the camera scrolls upward to follow progress. It tracks a score based on distance traveled and persists a high score across sessions using the browser's local storage.

Key Skills:
  • ES6 classes for game objects
  • Finite state machines (START/PLAYING/GAME_OVER)
  • Camera scrolling via draw-position offset
  • Axis-aligned bounding box (AABB) collision detection
  • Procedural, infinite obstacle generation

by dk donkey kong Β· 65 views

πŸ“– Read Docs πŸ‘οΈ View
389 the modiful - p5.js creative coding sketch

the modiful

This sketch is meant to draw a mesmerizing rainbow spiral that grows outward from the center of the screen, with each dot colored by cycling through the HSB hue wheel and old dots fading into a soft black trail. As written, the file actually contains two corrupted lines (a mangled variable name and stray text after the last function) that will stop it from running at all, which makes it a great real-world exercise in reading error messages and debugging.

Key Skills:
  • HSB color mode
  • Polar to Cartesian coordinate conversion
  • translate() and coordinate origins
  • while loops for procedural drawing
  • Alpha transparency for trail effects

by Mamadou Bah Β· 77 views

πŸ“– Read Docs πŸ‘οΈ View
390 Simple Game - p5.js creative coding sketch

Simple Game

This sketch fills the screen with a grid of white circles that pulse in size like a slow-moving wave, thanks to a sine function tied to frameCount. Keyboard controls let you adjust the grid spacing, animation speed, and pulse size live, with a semi-transparent black background creating soft motion trails.

Key Skills:
  • Nested for loops for grid layout
  • Sine wave oscillation for animation
  • frameCount-driven motion
  • Transparency and trailing backgrounds
  • Keyboard input handling

by Mamadou Bah Β· 59 views

πŸ“– Read Docs πŸ‘οΈ View
391 Very fun game but sonion th onion - p5.js creative coding sketch

Very fun game but sonion th onion

This sketch is a complete arcade-style game where you steer a layered onion character named Sonion around the screen to collect ten glowing 'flavor pearls' before a 30-second timer runs out, all while dodging falling rotten vegetables that cost you lives. It uses a finite state machine to switch between start, playing, game-over and win screens, and supports both keyboard (WASD/arrows) and touch/mouse controls.

Key Skills:
  • Finite state machine (START/PLAYING/GAMEOVER/WIN)
  • ES6 classes for game objects
  • Circle-circle collision detection with dist()
  • Timing with millis() for a countdown
  • Keyboard input via keyPressed()/keyReleased() flags

by dk donkey kong Β· 68 views

πŸ“– Read Docs πŸ‘οΈ View
392 P5.js sketch inspired by: "Tetris blocks" - p5.js creative coding sketch

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:
  • 2D array grids for game boards
  • Object literals to model game entities
  • Matrix rotation algorithm
  • Collision detection against a grid
  • millis()-based timing independent of frame rate

by corbun Β· 97 views

πŸ“– Read Docs πŸ‘οΈ View
393 chicken run - p5.js creative coding sketch

chicken run

This sketch is a Chrome-Dino-style endless runner where a cartoon chicken sprints across a scrolling gray ground, jumping over bombs and ducking under flying bullets. The player picks an Easy or Hard difficulty, and the game speeds up the longer they survive, tracking a score that increases every time an obstacle is dodged. A single collision instantly ends the run and shows a Game Over screen with the final score.

Key Skills:
  • Game state machines
  • Function-based OOP constructors (this.method)
  • AABB collision detection
  • Scrolling backgrounds
  • DOM buttons inside a p5 sketch

by Ranbitosu by Todmur Β· 60 views

πŸ“– Read Docs πŸ‘οΈ View
394 Offline game that works offline chicken run - p5.js creative coding sketch

Offline game that works offline chicken run

This sketch is a complete offline endless-runner game where a cartoon chicken jumps and ducks to dodge bombs and flying bullets scrolling toward it. Difficulty buttons let the player pick a starting speed, and the game speeds up automatically as the score climbs until a collision ends the run.

Key Skills:
  • Game state machine (start/playing/gameOver)
  • Constructor functions as classes
  • AABB collision detection
  • Scrolling background trick with two rectangles
  • DOM elements (createButton) mixed with canvas

by Ranbitosu by Todmur Β· 66 views

πŸ“– Read Docs πŸ‘οΈ View
395 party portal - p5.js creative coding sketch

party portal

This sketch creates an interactive party portal with a shared live player counter across browser tabs, auto-triggered Party Mode when a threshold is reached, and animated confetti and emojis. It includes optional music playback, a hidden admin dashboard accessed via a secret key sequence, and persistent statistics using localStorage.

Key Skills:
  • localStorage for cross-tab state sync
  • Particle animation classes
  • p5.sound music generation
  • Animated color interpolation
  • Hidden admin sequence detection

by corbun Β· 118 views

πŸ“– Read Docs πŸ‘οΈ View
396 inf road trip - p5.js creative coding sketch

inf road trip

This sketch creates a relaxing infinite driving scene where you cruise down a perspective road with trees and hills scrolling past. The car stays centered while the road lines and scenery continuously move toward you, simulating forward motion without the car actually moving.

Key Skills:
  • Perspective and vanishing points
  • Animation loop and frame-based movement
  • Arrays for managing multiple objects
  • Parallax scrolling for depth illusion
  • map() function for scaling based on distance

by corbun Β· 90 views

πŸ“– Read Docs πŸ‘οΈ View
397 AMERICAAAAAAAAA - p5.js creative coding sketch

AMERICAAAAAAAAA

This sketch creates a patriotic fireworks display where colorful rockets launch from the bottom of the screen and explode into particles that assemble into glowing "AMERICA 250" text. After one minute, the text dissolves away in a shimmering fade, creating a celebratory visual effect.

Key Skills:
  • Particle systems
  • Vector physics and forces
  • Font loading and text rendering
  • Off-screen graphics buffers
  • Pixel sampling and geometry extraction

by corbun Β· 103 views

πŸ“– Read Docs πŸ‘οΈ View
398 my profile - p5.js creative coding sketch

my profile

This sketch creates a beautifully lit 3D Earth rotating slowly in a starfield, with a satellite orbiting around it and leaving a glowing trail. The scene responds to mouse dragging for rotation control, and interactive sliders let you adjust gravity and satellite parameters in real time to watch the orbit transform.

Key Skills:
  • 3D rendering with WEBGL
  • Orbital mechanics and gravity simulation
  • Camera control and mouse interaction
  • Lighting and material properties
  • Particle trails and history buffers

by corbun Β· 101 views

πŸ“– Read Docs πŸ‘οΈ View
399 p5js.ai is super cool - p5.js creative coding sketch

p5js.ai is super cool

This 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:
  • WEBGL 3D rendering
  • Transformation stacks (push/pop)
  • Rotation matrices
  • Blend modes (ADD)
  • Color interpolation (lerpColor)

by corbun Β· 84 views

πŸ“– Read Docs πŸ‘οΈ View
400 talking ben - p5.js creative coding sketch

talking ben

This sketch creates an interactive cartoon dog that fills the screen with expressive animations and a speech bubble. Users can record their voice through their microphone, play it back, and watch the dog react with silly comments and changing facial expressions.

Key Skills:
  • p5.sound library (microphone input, recording, playback)
  • State management (tracking isRecording, isPlaying, hasRecording)
  • Conditional animation (expressions change based on state)
  • UI interaction (buttons, click detection, hit testing)
  • Scaling and responsive design (min/max, windowWidth/windowHeight)

by corbun Β· 105 views

πŸ“– Read Docs πŸ‘οΈ View