πŸ“– 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
651 Wikipedia - p5.js creative coding sketch

Wikipedia

It is literally just Wikipedia but inside this app if you ever have a school project or just want to know something Wikipedia is the way to go

Key Skills:
  • wikipedia
  • cool
  • educational

by Angry GamerBro Β· 45 views

πŸ“– Read Docs πŸ‘οΈ View
652 Generative Art - p5.js creative coding sketch

Generative Art

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Samson Klitsner Β· 45 views

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

P5.js sketch inspired by: "Flame dance"

This sketch paints a row of softly flickering, layered flames in warm reds, oranges, and yellows against a dark background. The fire gently dances using Perlin noise, and the layout automatically adjusts to fit your window size.

Key Skills:
  • Perlin noise
  • Trigonometry
  • daily

by corbun Β· 45 views

πŸ“– Read Docs πŸ‘οΈ View
654 Name Alexander Romero appear on screen in 3d with - p5.js creative coding sketch

Name Alexander Romero appear on screen in 3d with

This sketch is an interactive, multi-stage visual journey built as a finite state machine: you click gaps into a wall of glowing lines, watch it melt, pierce a dark hallway with light, reveal a giant eye, and finally fall into its pupil to loop back to the start. Every stage uses HSB colors, lerp-based animation, and procedurally synthesized sound instead of audio files.

Key Skills:
  • Finite state machine with a switch statement
  • Procedural audio synthesis with p5.Oscillator and p5.Envelope
  • Linear interpolation (lerp) for smooth animation
  • Distance-based falloff (map with clamping) for ripple effects
  • Particle systems and array splicing

by A Romero Β· 45 views

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

Eatmoji

Eatmoji is a survival-style virtual pet game where a glowing, emoji-eyed blob follows your cursor and must gobble up food particles before their countdown timers hit zero. If any food expires, the screen shakes and a game-over emoji appears, challenging you to keep feeding your pet forever.

Key Skills:
  • Game/state machine (petState & gameState)
  • Timers with millis() instead of setTimeout
  • lerp() easing for smooth follow motion
  • Particle systems (food + eating burst)
  • Collision detection with dist()

by Shahwaiz Khan Β· 45 views

πŸ“– Read Docs πŸ‘οΈ View
656 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 Β· 45 views

πŸ“– Read Docs πŸ‘οΈ View
657 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 Β· 45 views

πŸ“– Read Docs πŸ‘οΈ View
658 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 Β· 45 views

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

P5.js sketch inspired by: "Undertow current"

Creative coding sketch

Key Skills:
  • daily

by corbun Β· 44 views

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

P5.js sketch inspired by: "Sandstorm"

Creative coding sketch

Key Skills:
  • daily

by corbun Β· 44 views

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

P5.js sketch inspired by: "Pebble ripple"

This sketch turns your screen into a calm blue-green pool where each click or touch drops a pebble, sending out expanding, fading rings. Every ripple grows at its own speed and size, creating a soothing, ever-changing water effect.

Key Skills:
  • Mouse interaction
  • daily

by corbun Β· 44 views

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

P5.js sketch inspired by: "Oasis mirage"

Creative coding sketch

Key Skills:
  • daily

by corbun Β· 44 views

πŸ“– Read Docs πŸ‘οΈ View
663 Skibidi Toilet Battle (Three Titans) (Drillman & Clockman) - p5.js creative coding sketch

Skibidi Toilet Battle (Three Titans) (Drillman & Clockman)

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 44 views

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

P5.js sketch inspired by: "UFO abduction"

Creative coding sketch

Key Skills:
  • daily

by corbun Β· 44 views

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

P5.js sketch inspired by: "Toppling towers"

This sketch builds random, wobbly towers of blocks and lets you swing a physics-powered wrecking ball to knock them down in a satisfying cascade. Click the β€œReset Towers” button to instantly generate a fresh set of structures to demolish again.

Key Skills:
  • Particle systems & physics
  • Mouse interaction
  • Randomness
  • daily

by corbun Β· 44 views

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

happiness

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Estrella lvarez luna Β· 44 views

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

fish

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by 3D12 Β· 44 views

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

Are tetris game

This sketch creates a colorful Tetris-style game where different shaped blocks fall into a grid and stack up as you play. Use the keyboard to move and rotate the pieces, clear lines, and try to keep the pile from reaching the top.

Key Skills:
  • Color manipulation

by oliver Β· 44 views

πŸ“– Read Docs πŸ‘οΈ View
669 Ant Battle (Raig) - p5.js creative coding sketch

Ant Battle (Raig)

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 44 views

πŸ“– Read Docs πŸ‘οΈ View
670 Sketch 2026-07-16 22:08 - p5.js creative coding sketch

Sketch 2026-07-16 22:08

This sketch creates a grid of tiles that starts as plain white squares and transforms into a lively animated mosaic of colorful shapes when clicked. On the first click, tiles jump to random shapes, colors and rotations; on the second click and beyond, they continuously morph and drift toward new random targets using smooth interpolation.

Key Skills:
  • 2D arrays of objects
  • State machines (clickCount)
  • Linear interpolation (lerp) animation
  • push()/pop() transformation isolation
  • translate() and rotate()

by Jonathan Chi Β· 44 views

πŸ“– Read Docs πŸ‘οΈ View
671 Particle System - Meditation - p5.js creative coding sketch

Particle System - Meditation

This sketch fills the canvas with a smooth grey-to-black gradient and continuously spawns soft, colorful particles that trail behind the mouse cursor, drift with simulated gravity, and slowly fade away. Clicking the mouse triggers a burst of 80 particles that explode outward in every direction, like a tiny firework in the gradient sky.

Key Skills:
  • Particle systems
  • Object-oriented programming (classes)
  • p5.Vector for position, velocity and acceleration
  • Color interpolation with lerpColor()
  • Alpha transparency fading

by Owen Landon Β· 44 views

πŸ“– Read Docs πŸ‘οΈ View
672 Lethal ape: redux revamp update (Remix) - p5.js creative coding sketch

Lethal ape: redux revamp update (Remix)

This sketch is a full top-down horror exploration game: you creep through a main hub room and five connected floors while roaming monsters hunt you, and touching one triggers a multi-phase jumpscare. It uses procedural (code-drawn) art for every character and prop, a smoothed camera that follows the player, on-screen joystick/buttons for mobile plus keyboard for desktop, and entirely procedural p5.sound audio (oscillators, noise, envelopes, delay) instead of loaded files.

Key Skills:
  • Finite state machines with switch/case
  • AABB rectangle collision detection
  • Smooth camera following with lerp()
  • Chase AI using dist() and atan2()
  • Procedural audio synthesis with p5.sound

by Red guides Β· 44 views

πŸ“– Read Docs πŸ‘οΈ View
673 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 Β· 44 views

πŸ“– Read Docs πŸ‘οΈ View
674 Imageine we throw needles on the canvas, that - p5.js creative coding sketch

Imageine we throw needles on the canvas, that

Creative coding sketch

Key Skills:
  • daily

by Tim Zadorozhny Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
675 P5js sketch inspired by somthing - p5.js creative coding sketch

P5js sketch inspired by somthing

This sketch paints colorful, glowing particles that trail after your mouse, leaving soft, fading streaks across a dark background. Move your cursor around to sculpt swirling, organic patterns of light in real time.

Key Skills:
  • Particle systems & physics
  • Mouse interaction
  • Color manipulation
  • daily

by corbun Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
676 Dice on my Android V1.1.2 boards update!! - p5.js creative coding sketch

Dice on my Android V1.1.2 boards update!!

In this update I included a board's button when you press it it changes the styles of colors of the board which is pretty cool also I removed the dice on my Android version text at the top corner because it's just inconvenient but I hope you guys enjoyed this update!!!

Key Skills:
  • Color manipulation
  • board
  • update
  • dice
  • cool

by Angry GamerBro Β· 43 views

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

testing

Creative coding sketch

Key Skills:
  • daily

by corbun Β· 43 views

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

P5.js sketch inspired by: "Zenith bloom"

This sketch paints a drifting galaxy of soft, glowing color blooms over a field of twinkling stars, with each bloom slowly expanding and fading into the night. New bursts of light appear over time, cycling through the rainbow to create an ever-changing cosmic scene.

Key Skills:
  • Color manipulation
  • Trigonometry
  • daily

by corbun Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
679 Ant Battle (Pls Comment And View This) (Titan Ant) (M Menu) (Zombie Update) (Remix) - p5.js creative coding sketch

Ant Battle (Pls Comment And View This) (Titan Ant) (M Menu) (Zombie Update) (Remix)

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
680 My name - p5.js creative coding sketch

My name

Its like my name but interactive

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by EmmanuelS Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
681 cool gaem - p5.js creative coding sketch

cool gaem

A silky, liquid-like blob floats in space with smaller satellite orbs melting into it, all shimmering with smooth, colorful ripples. Move your mouse or tilt your device to gently tug the fluid mass around and intensify its flowing patterns.

Key Skills:
  • Mouse interaction
  • Color manipulation
  • daily

by corbun Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
682 Ant Battle (Birds) (Dark Blue) (Miner Ants) (Boss Ants) - p5.js creative coding sketch

Ant Battle (Birds) (Dark Blue) (Miner Ants) (Boss Ants)

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
683 Ant Battle (Birds) (Dark Blue) (Miner Ants) - p5.js creative coding sketch

Ant Battle (Birds) (Dark Blue) (Miner Ants)

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
684 Ant Battle (Birds) (Main Menu And Christmas Units) (Remix) - p5.js creative coding sketch

Ant Battle (Birds) (Main Menu And Christmas Units) (Remix)

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 43 views

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

SLEEP_2

A game of sleep and dreams

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Emmanuel Emmanuel Β· 43 views

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

Starship Game

This sketch is a full arcade survival game where you steer a spaceship left and right with your mouse, scooping up glowing gold orbs while dodging spiky red mines that rain down from the top of the screen. Each hit costs a life and triggers a screen shake and red damage flash, and the game speeds up the longer you survive until you lose all three lives and see a Game Over screen with your final rank.

Key Skills:
  • ES6 classes for game entities
  • Arrays of objects with add/remove via splice
  • Circle collision detection with dist()
  • Particle systems for explosions
  • Game state machine (playing vs gameOver)

by Shahwaiz Khan Β· 43 views

πŸ“– Read Docs πŸ‘οΈ View
687 Realsitic planet exploration simulator with erocket - p5.js creative coding sketch

Realsitic planet exploration simulator with erocket

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by CosmicFalcon16 Β· 42 views

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

P5.js sketch inspired by: "Amber glow"

A warm, pulsing amber glow blooms from the center of the screen, surrounded by softly blurred orbs that gently radiate and shift over time. The whole scene feels like a living ember or glowing nebula drifting in the dark.

Key Skills:
  • Trigonometry
  • daily

by corbun Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
689 DRIFT STARS re-release v1.1 - p5.js creative coding sketch

DRIFT STARS re-release v1.1

This version adds a settings button in the main menu when you click it you can turn off street light poles which will make it easier in the game because straight line Kohl's can take a lot of health also I added a boost to the game so you can go super fast for 5 seconds then it has a 10-second countdown to your next boost just so you can boost the whole game hope you enjoyed this new update peace ✌️

Key Skills:
  • Mouse interaction
  • Arrays & loops
  • update
  • cool
  • cars

by Angry GamerBro Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
690 "Welcome to Sketchbook to Screen Student Exhibition" - p5.js creative coding sketch

"Welcome to Sketchbook to Screen Student Exhibition"

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Reina Lee Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
691 Ant Battle (Pls Comment And View This) - p5.js creative coding sketch

Ant Battle (Pls Comment And View This)

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
692 Ant Battle (Owner Panel - p5.js creative coding sketch

Ant Battle (Owner Panel

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
693 Responsive generative-art web experience using - p5.js creative coding sketch

Responsive generative-art web experience using

Creative coding sketch

Key Skills:
  • Trigonometry

by Tori Chitty Β· 42 views

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

Hangman

Creative coding sketch

Key Skills:
  • Basic p5.js drawing
  • Creative coding

by Mathew Bernard Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
695 FBI TAKEDOWN sceen (Remix) - p5.js creative coding sketch

FBI TAKEDOWN sceen (Remix)

This sketch recreates a classic 'FBI warning' prank screen: a full-screen black page with blinking red warning text, a pulsing alarm sound, fake scanning messages, a countdown timer, and a green 'DISMISS PRANK' button that ends the joke. It uses p5.js text and color functions alongside the p5.sound library to synchronize a flashing visual with an audio alarm.

Key Skills:
  • Animation loop (draw)
  • Modulo-based blinking/cycling with frameCount
  • p5.sound Oscillator and amplitude ramping
  • Mapping a sine wave to a value range with map()
  • DOM elements (createButton) combined with canvas drawing

by corbun Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
696 anthropic ai Pool table game - p5.js creative coding sketch

anthropic ai Pool table game

This sketch is a fully playable, two-player 8-ball pool game rendered in 2D with a realistic top-down look - felt, wooden rails, brass pockets, and a tapered cue stick. Players click-and-drag to aim, release to shoot, and the game runs real physics for ball collisions, cushion bounces, friction, and pocket sinking while enforcing official 8-ball rules like group assignment, fouls, and win conditions.

Key Skills:
  • State machine driven draw loop (gameState)
  • p5.Vector math for physics
  • Elastic circle-circle collision resolution
  • Class-based game objects (Ball)
  • Raycasting against circles for aim-assist

by david w Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
697 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 Β· 42 views

πŸ“– Read Docs πŸ‘οΈ View
698 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 Β· 42 views

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

Bouncing ball animation

Creative coding sketch

Key Skills:
  • Animation loops
  • daily

by GlitchOtter56 Β· 41 views

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

P5.js sketch inspired by: "L

Softly glowing lanterns drift and sway across a starry, gradient night sky, wrapping endlessly around the screen. Click and hold the mouse to gently push the lanterns away, scattering them as they float by.

Key Skills:
  • Mouse interaction
  • daily

by GlitchOtter56 Β· 41 views

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