πŸ“– 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
301 Temu Rainbow Friends - p5.js creative coding sketch

Temu Rainbow Friends

Temu

Key Skills:
  • temurainbowfriends

by Mathew Bernard Β· 66 views

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

Connect 3

Creative coding sketch

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

by Mathew Bernard Β· 56 views

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

UNO

Creative coding sketch

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

by Mathew Bernard Β· 68 views

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

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

Ant Battle (Birds) (Main Menu And Christmas Units) (Chapter 2)

Creative coding sketch

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

by Mathew Bernard Β· 67 views

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

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

Creative coding sketch

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

by Mathew Bernard Β· 59 views

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

Ant Battle (Birds)

Creative coding sketch

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

by Mathew Bernard Β· 65 views

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

Ant Battle

Creative coding sketch

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

by Mathew Bernard Β· 142 views

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

emmanuel

This 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:
  • WEBGL 3D rendering with plane()
  • Texture mapping with createGraphics()
  • Frame-based animation state machines
  • Easing functions for smooth motion
  • Perlin noise for procedural textures

by Emmanuel Emmanuel Β· 71 views

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

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

πŸ“– Read Docs πŸ‘οΈ View
312 More orbiting objects orbiting around the supernova - p5.js creative coding sketch

More orbiting objects orbiting around the supernova

This 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:
  • ES6 classes and inheritance (extends)
  • Particle systems with object pooling (splice + push replacement)
  • Trigonometric orbits using cos()/sin() and an incrementing angle
  • Additive blend modes (blendMode(ADD)) for glow effects
  • Color interpolation with lerpColor() and lerp() for smooth transitions

by Reyli Martinez Β· 90 views

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

spot for all of his lifeπŸ’― (Remix)

This sketch loads a single image from the web and displays it full-screen with a semi-transparent timer bar overlaid at the top, counting up elapsed minutes and counting down from a massive countdown target of nearly 8 million minutes. It handles the image loading asynchronously so the sketch never freezes while waiting for the network.

Key Skills:
  • Asynchronous image loading with callbacks
  • Aspect ratio preserving 'cover' scaling
  • millis() based timing
  • Responsive canvas resizing
  • Conditional rendering based on state flags

by Mathew Bernard Β· 88 views

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

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

SLEEP

game of sleeping and dreaming...

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

by Emmanuel Emmanuel Β· 76 views

πŸ“– Read Docs πŸ‘οΈ View
316 Interactive animation with the name β€œASHTON” displayed - p5.js creative coding sketch

Interactive animation with the name β€œASHTON” displayed

This sketch renders the word "ASHTON" in glowing, layered text at the center of a full-window WEBGL canvas, surrounded by softly pulsing background fireworks. Clicking or tapping the text changes its hue and launches an expanding ring (a shockwave) from its center, turning a static title into a playful interactive animation.

Key Skills:
  • WEBGL coordinate system (centered origin)
  • HSB color mode and alpha transparency
  • Custom font loading with preload()
  • Layered transparency for glow effects
  • Particle systems with ES6 classes

by Ashton Jensen Β· 95 views

πŸ“– Read Docs πŸ‘οΈ View
317 Name Owen on the screen, make the style of the - p5.js creative coding sketch

Name Owen on the screen, make the style of the

This sketch spells out the name 'Owen' with each letter bouncing around the screen like a classic DVD-logo screensaver, using two weights of the Oswald font. Clicking a letter randomly resizes it and reverses its direction, turning a simple animation into a playful interactive toy.

Key Skills:
  • preload() and loadFont() for custom typography
  • Array of objects for managing multiple independent entities
  • Edge collision / bounce detection using textWidth()
  • Mouse interaction with per-object hit-testing
  • Responsive layout with windowResized()

by Owen Landon Β· 74 views

πŸ“– Read Docs πŸ‘οΈ View
318 Particle system that follows the mouse - p5.js creative coding sketch

Particle system that follows the mouse

This 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:
  • ES6 classes for object-oriented particle systems
  • p5.Vector physics (position, velocity, acceleration)
  • Array management with push and splice
  • Alpha transparency and color fading
  • lerpColor for gradient backgrounds

by Owen Landon Β· 99 views

πŸ“– Read Docs πŸ‘οΈ View
319 Sol’s Rng - p5.js creative coding sketch

Sol’s Rng

This sketch is a Roblox-style 'gacha' aura roller: click a button to roll for a random rarity (Common through the ultra-rare Synced), watch an animated stick-figure character glow with pulsing rings, and use a hidden admin panel to manually give any aura and see it rendered around the character in real time.

Key Skills:
  • Weighted random selection with cumulative probability
  • p5.js DOM elements (createButton, createDiv, createInput)
  • HSL color strings for animated rainbow effects
  • push()/pop() and translate() for local coordinate drawing
  • frameCount-driven sine wave animation

by Mathew Bernard Β· 62 views

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

Chess

This sketch turns p5.js into a fully playable chess board: it renders an 8x8 grid, draws Unicode chess symbols for every piece, lets the player click to select and move white pieces with real chess rules enforced, and hands control to a simple built-in AI that plays black by picking the first legal move it can find.

Key Skills:
  • ES6 classes and object-oriented game state
  • 2D coordinate mapping (pixels to grid cells)
  • Nested loops for board search
  • Ternary operators for conditional logic
  • Array methods (find, filter, push)

by Mathew Bernard Β· 58 views

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

πŸ“– Read Docs πŸ‘οΈ View
322 [Device: desktop/laptop - p5.js creative coding sketch

[Device: desktop/laptop

This sketch simulates a fake virus-scan popup that cycles through four dramatic states β€” scanning, infected, fixing, and clean β€” complete with animated progress bars, a scrolling list of fake infected files, oscillator sound effects, and a big red FIX NOW button. It's a prank sketch designed to look alarming while a small 'This is a prank.' label keeps things playful.

Key Skills:
  • Finite state machine with switch-case
  • millis()-based timers for animation phases
  • map() and constrain() for progress bars
  • p5.sound Oscillator and Noise
  • DOM elements with createButton()

by corbun Β· 80 views

πŸ“– Read Docs πŸ‘οΈ View
323 pronk (Remix) - p5.js creative coding sketch

pronk (Remix)

This sketch is an interactive prank: it fakes a slow software installation with rotating status messages and a progress bar, then switches to a classic blue-screen-of-death crash, and finally reveals a cheerful 'APRIL FOOLS!' screen with a bouncing circle animation and a burst of white noise.

Key Skills:
  • Finite state machine
  • millis() based timing
  • switch statement
  • p5.sound Envelope/Noise
  • Progress bar drawing

by corbun Β· 71 views

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

πŸ“– Read Docs πŸ‘οΈ View
325 triple t virus (Remix) - p5.js creative coding sketch

triple t virus (Remix)

This sketch creates a fake 'virus alert' screen with flashing scare images, a flickering red background, animated TV-static noise, and two joke buttons that spawn sarcastic floating text when clicked. It's a comedic prank page built almost entirely from p5.js timers, image overlays, and DOM buttons layered on top of a canvas.

Key Skills:
  • Timers with millis()
  • DOM elements via createButton()
  • Classes for reusable animation (FloatingText)
  • Nested for-loops for procedural texture
  • Responsive layout with windowResized()

by corbun Β· 69 views

πŸ“– Read Docs πŸ‘οΈ View
326 smiley face buttons (Remix by Corbun) - p5.js creative coding sketch

smiley face buttons (Remix by Corbun)

This sketch creates a lively grid of eight yellow smiley-face circles and eight patterned white squares on a soft gradient background. The faces blink, bob, rotate, and react to the mouse with hover scaling, squash-and-bounce clicks, glowing halos, expanding ripples, and orbiting sparkle particles, while each square animates a unique line pattern clipped neatly inside its borders.

Key Skills:
  • Arrays of objects for managing many animated instances
  • p5.Graphics buffers with native canvas clipping
  • HSB color mode for rainbow hue cycling
  • Linear interpolation (lerp) for smooth hover/scale transitions
  • Particle-style systems using push/splice on arrays

by corbun Β· 77 views

πŸ“– Read Docs πŸ‘οΈ View
327 AI Fractal Explorer - Infinite Mandelbrot Zoom Explore infinite mathematical beauty! Click to zoom (Remix) - p5.js creative coding sketch

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:
  • Escape-time fractal algorithm
  • Complex number iteration
  • Pixel array manipulation (loadPixels/updatePixels)
  • HSV to RGB color conversion
  • Screen-to-complex coordinate mapping

by NeonFox67 Β· 97 views

πŸ“– Read Docs πŸ‘οΈ View
328 Sketch 1 - p5.js creative coding sketch

Sketch 1

This sketch draws a single static cartoon portrait: a face wearing round glasses, framed by curly hair and two ears, built entirely out of layered ellipse() and rect() shapes with rounded corners. There is no animation or interaction - the same image is simply redrawn every frame using dozens of hard-coded shape calls stacked in a specific order to create depth (hair behind face, glasses over eyes, skin patches over the glasses rim).

Key Skills:
  • Shape primitives (ellipse, rect)
  • Rounded rectangle corner radii
  • fill() and color layering
  • Draw order and z-stacking
  • Static canvas composition

by Sneha Sardar Β· 73 views

πŸ“– Read Docs πŸ‘οΈ View
329 It so you build everything and you search it the - p5.js creative coding sketch

It so you build everything and you search it the

This sketch simulates a playful "AI builder" where typing a word like circle, house, or tree into a text box makes that shape appear on the canvas. Each typed command is matched against a list of known words in a switch statement, and matching shapes are stored as drawing functions that get replayed every frame.

Key Skills:
  • DOM elements (createInput, createButton, createDiv)
  • Event callbacks (mousePressed, touchStarted)
  • Switch-case string matching
  • Storing functions in an array (closures)
  • Custom helper functions (drawStar)

by Mathew Bernard Β· 52 views

πŸ“– Read Docs πŸ‘οΈ View
330 Add infinite Craft That you search up something - p5.js creative coding sketch

Add infinite Craft That you search up something

This sketch recreates the viral 'Infinite Craft' game entirely in p5.js: you drag draggable item tiles around a canvas and drop one on top of another to combine them into a new item, following a giant hardcoded lookup table of crafting recipes. Your inventory is drawn as colored rounded rectangles and automatically saved to the browser's localStorage so your discoveries persist between visits.

Key Skills:
  • Object literals as lookup tables
  • Array management (push/splice/filter)
  • p5.js DOM elements (createInput, createButton)
  • Axis-aligned bounding box collision detection
  • Mouse event callbacks (mousePressed/mouseReleased)

by Mathew Bernard Β· 63 views

πŸ“– Read Docs πŸ‘οΈ View
331 Battle Cat - p5.js creative coding sketch

Battle Cat

This sketch draws a single, static cartoon cat wearing armor and wielding a sword, built entirely from p5.js primitive shapes like rectangles, ellipses, triangles, and a bezier curve. The whole character scales and re-centers itself automatically to fit any browser window size.

Key Skills:
  • Transformations (translate, scale, rotate)
  • push() and pop() state isolation
  • Primitive shapes (rect, ellipse, triangle, arc, bezier)
  • Responsive canvas sizing
  • windowResized() event handling

by Mathew Bernard Β· 64 views

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

Your_Robot_Buddy

An interactive Robot pretty cool huh? V3. Big update new title screen and new a new color panel change your robots color! Have fun

Key Skills:
  • Color manipulation

by Emmanuel Emmanuel Β· 97 views

πŸ“– Read Docs πŸ‘οΈ View
333 smiley face buttons - p5.js creative coding sketch

smiley face buttons

This 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:
  • p5.Graphics offscreen buffers
  • Canvas clipping with drawingContext
  • HSB color mode & hue cycling
  • Arrays of state objects for multiple animated instances
  • Easing and lerp()-based animation

by Ashton Jensen Β· 77 views

πŸ“– Read Docs πŸ‘οΈ View
334 Can you make it so that when he drinks the energy - p5.js creative coding sketch

Can you make it so that when he drinks the energy

This 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:
  • Animation loop (draw())
  • State machines with boolean flags
  • Mouse interaction (mousePressed/mouseDragged/mouseReleased)
  • lerp() for smooth easing
  • p5.sound oscillators and envelopes

by Emmanuel Emmanuel Β· 79 views

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

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:
  • Nested for loops for grids
  • push() / pop() transformation state
  • translate() and rotate() to reposition and reorient shapes
  • map() to convert one numeric range into another
  • Event-driven redraw with noLoop()

by corbun Β· 88 views

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

Monster

This sketch renders an interactive 3D scene in WEBGL mode: a grey cube with a clickable colored sphere 'button' embedded in its front face, surrounded by four wobbling tentacle-like chains of stretched spheres. You can drag the cube to rotate it, click the button to cycle through messages, double-click it to change its color, and grab any tentacle tip to stretch and bend it.

Key Skills:
  • WEBGL 3D rendering
  • Manual 3D-to-2D projection
  • push()/pop() transform isolation
  • Trigonometric animation (sin/cos wobble)
  • Mouse-based dragging and picking

by A Romero Β· 74 views

πŸ“– Read Docs πŸ‘οΈ View
337 R0bot t-thing_ ERROR - p5.js creative coding sketch

R0bot t-thing_ ERROR

This sketch brings a boxy cartoon robot to life on the canvas: its eyes track the mouse and blink naturally, its arms can be grabbed and slung around like a ragdoll, and clicking its chest emoji triggers a squinting electric-shock animation complete with speech bubbles. It is a great example of combining timers, easing, trigonometry, and simple state machines to make a static drawing feel alive.

Key Skills:
  • The draw() animation loop
  • Mouse interaction (mousePressed, mouseDragged, mouseReleased)
  • Timers with millis() for natural, randomized behavior
  • Easing/smoothing with lerp()
  • Vector math for dragging: atan2(), dist(), constrain()

by Emmanuel Emmanuel Β· 101 views

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

Sketch 2026-07-15 21:08

This sketch renders an interactive 3D cube in WEBGL mode with a glowing sphere 'button' on its front face and four wobbling tentacles hanging from its corners. You can drag to rotate the cube, click the button to cycle through messages, double-click it to randomize its color, and grab a tentacle tip to stretch and bend it.

Key Skills:
  • WEBGL 3D rendering
  • push/pop transform stack
  • Manual 3D-to-2D screen projection
  • Mouse drag interaction
  • p5.Vector math

by A Romero Β· 65 views

πŸ“– Read Docs πŸ‘οΈ View
339 My sketch is throwing this error β€” please diagnose - p5.js creative coding sketch

My sketch is throwing this error β€” please diagnose

This sketch draws an animated cartoon face inside a large oval that can be either purple or green. Clicking a small gray 'button' triggers a blinking sequence followed by a spiraling color-morph animation that shrinks the eyes into the center of the oval (or reverses the process), while red tic marks fade in and out around the oval's edge to indicate its 'active' state.

Key Skills:
  • Timing animations with millis() and stored start times
  • Color interpolation with lerpColor()
  • Boolean state machines for sequencing behaviors
  • map() for remapping and clamping progress values
  • Trigonometric spiral motion with sin()/cos()

by Jimmy Ly Β· 61 views

πŸ“– Read Docs πŸ‘οΈ View
340 It so when I press keys "a", "s", "d", "f", "j" - p5.js creative coding sketch

It so when I press keys "a", "s", "d", "f", "j"

This sketch draws a small on-screen piano and lets you literally see the keyboard react as you type: pressing A, S, D, F, J, K, L, or ; lights up the matching piano key in its own color and prints the letters you're holding down above the keys. It's a visual keyboard tester built entirely with rectangles, an object lookup table, and p5.js's key-event system.

Key Skills:
  • Lookup objects (keyToNoteMap, keyRects) instead of hardcoded values
  • keyIsDown() for continuous state vs keyPressed()/keyReleased() for one-time events
  • Arrays used as state (pressedKeysArray tracking currently held keys)
  • for-in loops over object properties
  • Custom fonts with preload() and loadFont()

by Jonathan Chi Β· 75 views

πŸ“– Read Docs πŸ‘οΈ View
341 Rectangular background with a door touching the - p5.js creative coding sketch

Rectangular background with a door touching the

This sketch is a small point-and-click game called 'Annoying Neighbors' built entirely with p5.js shapes and a state machine. You open a door in a hallway and something unpredictable appears behind it - an annoying neighbor, a box with an item, or nothing - and your job is to manage a rising 'annoyance meter' before it maxes out and ends the game.

Key Skills:
  • Finite state machines (gameState)
  • Custom rectangle hit-testing (isMouseOver)
  • Randomness driving game logic (random())
  • Responsive layout (calculateLayout / windowResized)
  • Canvas 2D context gradients (drawingContext.createRadialGradient)

by Owen Landon Β· 77 views

πŸ“– Read Docs πŸ‘οΈ View
342 How tu put the circle on da mittle - p5.js creative coding sketch

How tu put the circle on da mittle

This sketch draws a cute, latte-colored bear made entirely of overlapping circles and ellipses, centered on an 800x600 canvas. The bear gently bobs its head, and clicking its nose makes it wave a paw while a speech bubble cycles through friendly greeting messages.

Key Skills:
  • push/pop transforms
  • translate for coordinate offsets
  • sine wave animation
  • mouse interaction & dist()
  • conditional state machines

by Estrella lvarez luna Β· 52 views

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

πŸ“– Read Docs πŸ‘οΈ View
344 Cool guy - p5.js creative coding sketch

Cool guy

This sketch draws a large, friendly cartoon 'cool guy' - complete with spiky hair, sunglasses, a smirking mouth, and a blue collared shirt - centered on the canvas. Every shape is calculated from a single scale value tied to the window size, so the character redraws itself crisp and centered no matter how the browser is resized.

Key Skills:
  • translate() and push()/pop() for local coordinate systems
  • Proportional/relative sizing instead of hardcoded pixel values
  • beginShape()/vertex()/endShape() for custom polygons
  • Responsive canvas with windowResized()
  • Layering shapes to build a complex illustration

by Red guides Β· 80 views

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

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

πŸ“– Read Docs πŸ‘οΈ View
347 P5.js sketch inspired by: "Crosshatch" uhh don't play if you have  epilepsy - p5.js creative coding sketch

P5.js sketch inspired by: "Crosshatch" uhh don't play if you have epilepsy

This sketch tiles the entire canvas with a grid of hand-sketched crosshatch cells, where each cell's line density is driven by Perlin noise that slowly evolves over time. The result looks like an animated pencil-shading texture, with patches of the canvas continuously breathing between dense and sparse hatching.

Key Skills:
  • Nested for loops for grid layout
  • Perlin noise (noise())
  • map() for range conversion
  • push()/pop() transform isolation
  • translate() and rotate()

by corbun Β· 84 views

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

Ball Game

This sketch is a 'Neon Dodger' survival game where the player controls a glowing circle at the bottom of the screen, moving it left and right with the mouse to dodge falling neon squares. Enemies spawn at randomized intervals from the top of the screen, and the score increases every time one passes safely - until a collision ends the game with a restart screen.

Key Skills:
  • Game state management with booleans
  • Arrays of objects (enemies)
  • Collision detection (circle vs. square)
  • Timing with millis()
  • noLoop()/loop() to pause and resume the draw cycle

by Shahwaiz Khan Β· 67 views

πŸ“– Read Docs πŸ‘οΈ View
349 I want to build a mini game with claude as co - p5.js creative coding sketch

I want to build a mini game with claude as co

This sketch is a complete mini arcade game called 'Neon Dodge' where the player controls a glowing cyan circle with their mouse, dodging magenta squares that fall from the top of the screen. The game features a neon glow aesthetic, an increasing difficulty curve, and a full start-screen/gameplay/game-over state machine.

Key Skills:
  • Finite state machines (game states)
  • Arrays of objects for managing entities
  • Circle-vs-rectangle collision detection
  • Layered transparency for glow effects
  • push()/pop() with translate/rotate

by DoodleFalcon29 Β· 83 views

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

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