πŸ“– 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
751 GUESS WHO!!! - p5.js creative coding sketch

GUESS WHO!!!

This sketch creates a hilariously dim-witted zombie jockey riding on a wobbly chicken. The bot blinks randomly, tracks the mouse with laggy eyes, and twitches awkwardly while the chicken beneath it wobbles side to sideβ€”a delightfully stupid animation powered by noise, transforms, and eye-tracking logic.

Key Skills:
  • Perlin noise for organic motion
  • Transform stacking with push/translate/pop
  • Relative positioning and coordinate systems
  • Lerp for smooth interpolation
  • State machines and timers

by Anonymous Β· 277 views

πŸ“– Read Docs πŸ‘οΈ View
752 This game is broken someone fix it, Theres a game after this i promise - p5.js creative coding sketch

This game is broken someone fix it, Theres a game after this i promise

This is a multilingual text adventure game where players explore an ancient temple, collect items, and solve puzzles through typed commands or clickable buttons. The game supports five languages (English, Spanish, French, German, Italian) and features a classic retro terminal aesthetic with green text on black.

Key Skills:
  • Localization and multilingual support
  • Game state management
  • DOM manipulation and event listeners
  • Object-oriented data structures
  • String parsing and command processing

by Anonymous Β· 311 views

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

hehehe

This sketch creates a fast-paced bug-squashing game where cockroaches scurry across the screen and players race against a 30-second timer to click and splat as many bugs as possible. The game combines interactive collision detection, real-time scoring, and increasing difficulty as spawn rates accelerate.

Key Skills:
  • ES6 Classes
  • Object-oriented programming
  • Collision detection
  • Mouse events and interaction
  • Game state management

by Anonymous Β· 300 views

πŸ“– Read Docs πŸ‘οΈ View
754 play with your food - p5.js creative coding sketch

play with your food

This interactive p5.js sketch lets players drag colorful food items onto a white plate to create edible arrangements. A scoring system judges creativity based on variety, balance, symmetry, and food pairings, then delivers parent-themed feedback on the player's culinary design.

Key Skills:
  • Game state management with switch statements
  • Mouse interaction and dragging detection
  • Array manipulation and object iteration
  • Scoring algorithms with multiple weighted factors
  • Collision detection and proximity checking

by Anonymous Β· 304 views

πŸ“– Read Docs πŸ‘οΈ View
755 ITS RAINING TACOS - p5.js creative coding sketch

ITS RAINING TACOS

This sketch creates a festive animation where colorful tacos rain down the screen continuously while a mouse-following circle trails across the canvas with colors that shift based on cursor position. It combines object-oriented programming with p5.js animation to create an interactive, playful visual experience.

Key Skills:
  • Object-oriented programming with classes
  • Arrays of objects
  • Constructor and methods
  • Transform stack: push() and pop()
  • Coordinate transformation: translate() and rotate()

by Anonymous Β· 300 views

πŸ“– Read Docs πŸ‘οΈ View
756 ping-pong - p5.js creative coding sketch

ping-pong

This sketch is a modern Pong game where a glowing ball bounces between two paddlesβ€”one controlled by the mouse, the other by simple AI. Each collision triggers synthesized sound effects, and the first player to reach 5 points wins the game.

Key Skills:
  • Game loop and frame-based animation
  • Collision detection (AABB bounds testing)
  • Game state management
  • AI logic (simple tracking)
  • Sound synthesis with oscillators

by Anonymous Β· 287 views

πŸ“– Read Docs πŸ‘οΈ View
757 have fun - p5.js creative coding sketch

have fun

This sketch creates an interactive physics simulation where clicking destroys falling blocks, shattering them into flying pieces while drawing cracks across the screen. As you accumulate clicks, the cracks intensify until the screen itself "breaks," revealing a grotesque face beneath with a dramatic jumpscare effect.

Key Skills:
  • Physics engine integration (Matter.js)
  • Dynamic object spawning and removal
  • Collision detection and impact forces
  • Cumulative visual effects (cracks)
  • Multi-stage animation sequences

by Anonymous Β· 315 views

πŸ“– Read Docs πŸ‘οΈ View
758 ΧžΧ©Χ—Χ§ ΧžΧ™ΧœΧ™Χ - p5.js creative coding sketch

ΧžΧ©Χ—Χ§ ΧžΧ™ΧœΧ™Χ

This sketch creates an interactive Hebrew language learning game that displays a question asking for the Hebrew word for "dog." Users type their answer in an input box, click a check button, and receive instant visual feedback in green (correct) or red (incorrect with the right answer shown).

Key Skills:
  • DOM manipulation (createDiv, createInput, createButton)
  • Event handling (mousePressed)
  • String comparison and validation
  • Conditional logic based on user input
  • Dynamic styling with .style()

by Anonymous Β· 266 views

πŸ“– Read Docs πŸ‘οΈ View
759 ZahlenschΓ€tzer - p5.js creative coding sketch

ZahlenschΓ€tzer

This sketch is a number guessing game where players try to discover a secret number between 1 and 100 by entering guesses and receiving feedback. The game displays instructions, remaining attempts, and directional hints (too high/too low) on a clean interface with an input field and buttons.

Key Skills:
  • DOM interaction (input fields and buttons)
  • Game state management
  • Conditional logic
  • Input validation
  • Responsive canvas

by Anonymous Β· 288 views

πŸ“– Read Docs πŸ‘οΈ View
760 cazador de manzanas - p5.js creative coding sketch

cazador de manzanas

This sketch is a fast-paced fruit-catching game where players move a basket with their mouse to catch falling fruits, special items, and avoid bombs. The game features a combo system, particle effects, scrolling clouds, and synthesized sound effects that reward quick reflexes and strategic catching.

Key Skills:
  • Game state machine
  • Collision detection
  • Mouse interaction and input
  • Particle systems
  • Synthesized sound with oscillators

by Anonymous Β· 271 views

πŸ“– Read Docs πŸ‘οΈ View
761 Unfinished project - p5.js creative coding sketch

Unfinished project

This sketch creates a pixelated adventure game where you play as a diver exploring a flooded world. You swim through water, walk on land, enter houses, interact with NPCs, and complete quests by flooding buildings to reclaim the land for the sea.

Key Skills:
  • Game state management
  • Camera system and viewport scrolling
  • Physics simulation (gravity, buoyancy, friction)
  • Collision detection and interaction
  • Quest and dialogue system

by Anonymous Β· 328 views

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

mazey

This sketch creates an interactive maze game where players navigate a red cube from a green start cell to a blue goal cell using arrow keys or WASD. The maze is procedurally generated using the Recursive Backtracker algorithm, and the cube moves smoothly between cells with interpolation.

Key Skills:
  • Procedural maze generation
  • Recursive Backtracker algorithm
  • Grid-based navigation
  • Lerp-based smooth animation
  • Collision detection with walls

by Anonymous Β· 320 views

πŸ“– Read Docs πŸ‘οΈ View
763 Cody's mind - p5.js creative coding sketch

Cody's mind

This sketch creates a cosmic particle network orbiting a glowing central core, with sassy AI-generated thoughts that float across the screen. The particles emit flickering connections to nearby neighbors, creating an animated visualization of a thinking mind with personality.

Key Skills:
  • Particle systems
  • Vector math and attraction
  • Collision detection and overlap checking
  • Text rendering and bounding boxes
  • Frame-based animation and fading

by Anonymous Β· 311 views

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

Sketch 2026-02-08 21:36

Neural Flow Weaver is an abstract visualization of an interconnected network where animated nodes drift across the canvas and connect dynamically based on proximity. The sketch combines animated nodes, philosophical text insights, ambient soundscapes generated with Tone.js, and interactive audio feedbackβ€”creating a meditative experience that represents information processing and problem-solving.

Key Skills:
  • Particle systems and animation
  • Distance-based geometry (collision detection)
  • Perlin noise and organic randomness
  • Tone.js synthesizers and audio effects
  • Euclidean rhythm patterns

by Anonymous Β· 289 views

πŸ“– Read Docs πŸ‘οΈ View
765 Algorithmic Bloom - p5.js creative coding sketch

Algorithmic Bloom

This sketch generates an elegant fractal tree that grows recursively with branches tapering in length and color. The tree animates continuously with noise-driven swaying motion, set against a softly shifting sky gradient and textured ground, with seasonal color palettes you can cycle through by pressing keys.

Key Skills:
  • Recursive functions
  • Perlin noise animation
  • Dynamic color gradients
  • Transformations (translate, rotate, push/pop)
  • Tree data structures and fractals

by Anonymous Β· 333 views

πŸ“– Read Docs πŸ‘οΈ View
766 Sketch 2026-02-08 12:55 - p5.js creative coding sketch

Sketch 2026-02-08 12:55

This is not a p5.js creative coding sketchβ€”it is a web application that fetches real-time weather data from OpenWeatherMap API and displays agricultural advisory information on an HTML page. The sketch.js file contains only a single async function that retrieves weather data, and the project is primarily HTML/CSS/JavaScript for agricultural decision support, not visual art or interactive graphics created with p5.js.

Key Skills:
  • Asynchronous programming (async/await)
  • Fetch API and HTTP requests
  • JSON parsing
  • Error handling (try/catch)
  • DOM manipulation

by Anonymous Β· 274 views

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

Sketch 2026-02-07 15:33

This sketch creates an interactive audio-reactive image distortion effect that displays an image with bulges and pinches controlled by microphone input and time-based oscillations. The distortion effect follows your mouse cursor and responds to sound levels, creating a mesmerizing, morphing visual.

Key Skills:
  • Pixel manipulation
  • Audio input and amplitude analysis
  • Polar coordinates and transformations
  • Time-based animation with sine waves
  • Mouse interaction

by Anonymous Β· 296 views

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

InterActiveImagetest

This sketch displays an image on canvas and warps it into a bulging, rippling field centered on your mouse cursor. When you click to activate your microphone, the intensity of the warp responds to sound levels and time-based oscillations, creating an interactive audio-visual sculpture.

Key Skills:
  • Direct pixel manipulation
  • Audio reactivity
  • Polar coordinate system
  • Displacement mapping
  • Real-time image warping

by Anonymous Β· 321 views

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

Room

This sketch creates an immersive 3D room rendered in WebGL, filled with furniture, lab equipment, and decorative objects lit with warm, dramatic directional and point lights. You control a first-person camera by clicking and dragging to pan and tilt your head, and scrolling to zoom in and out through the lived-in space.

Key Skills:
  • WebGL 3D rendering
  • Camera control and transformation
  • 3D lighting (ambient, directional, point lights)
  • Material properties (specular, shininess, emissive)
  • Push/pop transformation isolation

by Anonymous Β· 329 views

πŸ“– Read Docs πŸ‘οΈ View
770 Astro bot - p5.js creative coding sketch

Astro bot

This sketch creates a full platformer game called Astro Bot where players navigate through 5 themed worlds, rescue bots, defeat enemies, and fight bosses. The game features a hub world for level selection, animated platforms, touch controls, particle effects, and a complete game loop with lives, scoring, and world progression.

Key Skills:
  • Game state management (hub, level, boss, win)
  • Physics simulation with gravity and velocity
  • Collision detection (platforms, enemies, bots, boss)
  • Touch controls and virtual joystick
  • Particle systems and visual effects

by Anonymous Β· 356 views

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

YouTube

This sketch creates a playful video player interface that displays random YouTube video titles in a large thumbnail box. Clicking the X button in the bottom-left corner skips to the next video with a beep sound and increments a counter.

Key Skills:
  • Mouse interaction and collision detection
  • Sound synthesis with oscillators
  • Responsive design and scaling
  • State management with arrays
  • Modulo arithmetic for cycling

by Anonymous Β· 309 views

πŸ“– Read Docs πŸ‘οΈ View
772 Sketch 2026-01-26 02:56 - p5.js creative coding sketch

Sketch 2026-01-26 02:56

This sketch creates a fully playable Pong game where two players control paddles on opposite sides of the screen to bounce a ball back and forth. The game tracks scores and resets the ball whenever it goes out of bounds on either side.

Key Skills:
  • Object properties and state management
  • Collision detection (bounding box)
  • Keyboard input with keyIsDown()
  • Game loops and frame-based animation
  • Score tracking and game events

by hpesoj Β· 314 views

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

Minesweeper

This sketch implements the classic Minesweeper game in p5.js with a 10x10 grid where players click to reveal cells and right-click to flag suspected mines. The game includes mine placement that avoids the first click, automatic cell flooding for empty cells, and a timer tracking game duration.

Key Skills:
  • 2D arrays and grid data structures
  • Mouse events and input handling
  • Recursive flood-fill algorithms
  • Game state management
  • Collision and neighbor detection

by hpesoj Β· 299 views

πŸ“– Read Docs πŸ‘οΈ View
774 Sketch 2026-01-25 22:50 - p5.js creative coding sketch

Sketch 2026-01-25 22:50

This is a fully playable Minesweeper game built with p5.js. Players click to reveal cells, right-click to flag mines, and try to uncover all safe cells before hitting a mine. The game includes a timer, smart mine placement that avoids the first click, and automatic flood-fill revealing of empty regions.

Key Skills:
  • 2D arrays and grid data structures
  • Recursion and flood-fill algorithms
  • Game state management
  • Mouse input and interaction
  • Collision detection and boundary checking

by hpesoj Β· 300 views

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

Platform Game

This is a 22-level platform game where the player controls a blue square that must navigate through increasingly complex levels by jumping, avoiding lava, and reaching green goal tiles. The game features gravity-based physics, collision detection, eight different tile types, and progressive difficulty.

Key Skills:
  • Tile-based level design
  • Gravity and velocity physics
  • Collision detection
  • 2D arrays for game grids
  • Keyboard input handling

by hpesoj Β· 281 views

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

Snake

This sketch implements the classic Snake game where players control a growing snake using arrow keys to collect food and increase their score. The game ends if the snake hits walls or itself, the food changes color with each bite, and the game accelerates as the score increases until reaching a winning score of 52.

Key Skills:
  • Game loops and state management
  • Collision detection
  • Array data structures for game objects
  • Keyboard input and event handling
  • Timing with millis() for frame-rate-independent movement

by hpesoj Β· 313 views

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

Wordle

This sketch recreates Wordle, the daily word-guessing game, using object-oriented p5.js code. Players type 5-letter guesses into a grid of boxes and get color-coded feedback (green, yellow, gray) both on the grid and on an on-screen keyboard, until they guess the secret word or run out of six tries.

Key Skills:
  • ES6 classes
  • 2D arrays
  • Keyboard event handling
  • String and array comparison
  • Game state management

by Anonymous Β· 432 views

πŸ“– Read Docs πŸ‘οΈ View
778 Sketch 2026-01-17 14:49 - p5.js creative coding sketch

Sketch 2026-01-17 14:49

This sketch creates a smooth text transition animation that alternates between two phrases: 'Adra Keren' and 'Adra Anak Emas'. Each phrase fades in and holds for 2 seconds, then fades out over 1 second as the other phrase fades in, creating a continuous loop. The canvas resizes responsively to fit the window.

Key Skills:
  • Time-based animation
  • Alpha transparency and fill()
  • millis() timer function
  • Modulo operator for looping
  • map() and lerp() for interpolation

by Anonymous Β· 293 views

πŸ“– Read Docs πŸ‘οΈ View
779 Fractal Forest - p5.js creative coding sketch

Fractal Forest

This sketch simulates a living patch of soil where nutrient-rich earth glows and drifts like breathing tissue, seeds fall from a starry night sky, and germinated seeds grow into branching plants using L-system grammar rules. Dead plants decay, return nutrients as glowing particles, and sometimes spawn spreading fungus, while a scrolling timeline chart tracks population and soil fertility over time.

Key Skills:
  • 2D grid-based simulation
  • Perlin noise for organic drift
  • L-systems (Lindenmayer systems) for procedural plants
  • HSB color mode for smooth gradients
  • ES6 classes for game/simulation objects

by Anonymous Β· 502 views

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

Particle System

This sketch creates an interactive particle system with 100 colorful particles that bounce around the canvas and are attracted toward the mouse cursor. Each particle has randomized size and color, creating a dynamic visual effect that responds to user interaction in real time.

Key Skills:
  • Object-oriented programming with classes
  • p5.Vector and vector math
  • Attraction and force simulation
  • Particle systems
  • Collision detection with canvas boundaries

by Anonymous Β· 356 views

πŸ“– Read Docs πŸ‘οΈ View
781 Teachable Machine > P5.js > Device (web serial) (Remix) (Remix) - p5.js creative coding sketch

Teachable Machine > P5.js > Device (web serial) (Remix) (Remix)

This sketch combines machine learning image classification with real-time device communication, allowing a Teachable Machine model to recognize objects from your webcam and send classification results to physical devices via USB Serial or Bluetooth. It bridges the gap between p5.js, ml5.js, and embedded systems like the micro:bit.

Key Skills:
  • Machine learning classification
  • Continuous video processing
  • Web Serial API for USB communication
  • Web Bluetooth API for wireless devices
  • Asynchronous callbacks and promises

by Anonymous Β· 385 views

πŸ“– Read Docs πŸ‘οΈ View
782 Teachable Machine > P5.js > Device (web serial) - p5.js creative coding sketch

Teachable Machine > P5.js > Device (web serial)

This sketch connects a Teachable Machine image classifier to a web browser, processes live webcam video to identify objects or subjects, and sends classification results via Web Serial to microcontroller devices like Arduino or Micro:bit. It bridges machine learning and hardware by creating a real-time visual classification system with two-way serial communication.

Key Skills:
  • Machine learning image classification
  • Web Serial API for hardware communication
  • Application state management
  • Asynchronous callbacks and promises
  • Video stream processing

by Anonymous Β· 378 views

πŸ“– Read Docs πŸ‘οΈ View
783 Sketch 2026-01-11 20:18 - p5.js creative coding sketch

Sketch 2026-01-11 20:18

This sketch uses ml5.js to classify video from your webcam in real-time and sends the classification results to a microcontroller via Web Serial API. It displays the live video feed alongside the current prediction label and confidence percentage, creating a bridge between machine learning in the browser and hardware devices.

Key Skills:
  • Machine learning classification
  • Webcam video capture
  • Web Serial API
  • Asynchronous I/O
  • BroadcastChannel API

by Larux75 Β· 353 views

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

HappyNewYear2026

This sketch animates a glittering Times Square-style ball dropping down a starry sky while cycling through iconic 2025 moments. When the ball reaches the bottom, the scene explodes into colorful confetti, fireworks, and a bold "2026" celebration.

Key Skills:
  • State machines
  • Particle systems
  • Easing functions
  • Animation loops
  • Class-based architecture

by Anonymous Β· 398 views

πŸ“– Read Docs πŸ‘οΈ View
785 FRACTAL GARDEN2 - p5.js creative coding sketch

FRACTAL GARDEN2

This sketch simulates a living cross-section of soil where Perlin-noise nutrients drift and diffuse, seeds fall from the sky and germinate when the ground is fertile enough, and surviving seeds grow into branching plants using L-system turtle graphics. Random events like seed showers, droughts, and blooms periodically reshape the miniature ecosystem, while a scrolling timeline tracks population and soil fertility over time.

Key Skills:
  • 2D grid-based diffusion simulation
  • Perlin noise for organic randomness
  • L-systems and turtle graphics
  • HSB color mode and color mapping
  • State machines (falling/dormant/germinating, alive/decaying)

by Anonymous Β· 422 views

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

FractalGarden

This sketch grows a living miniature ecosystem: a shifting band of soil rendered from a nutrient grid that diffuses and regenerates around hidden wells, while seeds drift down through gravity and wind, land in the dirt, and sprout into branching, shape-specific plants that compete for nutrients and space.

Key Skills:
  • 2D array grids
  • Perlin noise
  • HSB color mode
  • Object-oriented classes (Seed, Branch, Plant)
  • p5.Vector math and rotation

by Anonymous Β· 434 views

πŸ“– Read Docs πŸ‘οΈ View
787 Voxel-destructible - p5.js creative coding sketch

Voxel-destructible

This sketch creates a fully destructible 3D voxel world built with three.js, where each tiny cube can be clicked or tapped to explode into falling physics-based pieces. The scene supports free camera rotation and zooming, and plays satisfying destruction sounds via tone.js.

Key Skills:
  • 3D rendering with three.js
  • Physics simulation with cannon.js
  • Raycasting and click detection
  • Dynamic object destruction
  • Audio synthesis with tone.js

by Anonymous Β· 412 views

πŸ“– Read Docs πŸ‘οΈ View
788 Sketch 2025-12-24 00:08 - p5.js creative coding sketch

Sketch 2025-12-24 00:08

This sketch creates an animated orbital system featuring a morphing planet at the center and a smaller moon orbiting around it. Both shapes continuously transform between a triangle and a dodecagon while rotating, with colors that shift through the rainbow spectrum creating a mesmerizing, symmetrical animation.

Key Skills:
  • Custom polygon drawing with beginShape/vertex
  • Trigonometric functions (sin, cos) for smooth animation and orbital motion
  • HSB color mode for dynamic rainbow effects
  • Canvas transformations (translate, rotate, push, pop)
  • Morphing through interpolation and sine waves

by Anonymous Β· 351 views

πŸ“– Read Docs πŸ‘οΈ View
789 AI ASCII Camera - Live Webcam to Text Art Converter - xelsed.ai - p5.js creative coding sketch

AI ASCII Camera - Live Webcam to Text Art Converter - xelsed.ai

This sketch turns your live webcam feed into moving ASCII art, sampling the video's pixel brightness and mapping it to a ramp of text characters from spaces to '@' symbols. A toggle button lets you switch to a 'drawing' mode where you can finger-paint on a tiny buffer that also gets rendered as green terminal-style text.

Key Skills:
  • Webcam capture with createCapture
  • Pixel array manipulation with loadPixels
  • Nested loops for grid rendering
  • map() for range conversion
  • HSB color mode

by Anonymous Β· 590 views

πŸ“– Read Docs πŸ‘οΈ View
790 AI Constellation Drawer - Create Your Own Star Patterns - xelsed.ai - p5.js creative coding sketch

AI Constellation Drawer - Create Your Own Star Patterns - xelsed.ai

This sketch fills the screen with dozens of gently twinkling stars set against a deep blue gradient sky, and lets you click any two stars to draw a glowing white line between them - building your own constellation. Stars glow brighter under the mouse and while selected, and a subtle parallax effect makes the whole starfield drift as you move your cursor.

Key Skills:
  • Classes and objects
  • Arrays of objects
  • Mouse interaction and click detection
  • Canvas gradients via drawingContext
  • Sine wave animation

by Anonymous Β· 540 views

πŸ“– Read Docs πŸ‘οΈ View
791 AI Reaction Time Test - How Fast Are Your Reflexes - xelsed.ai - p5.js creative coding sketch

AI Reaction Time Test - How Fast Are Your Reflexes - xelsed.ai

This sketch is a classic reaction-time tester: the screen stays red for a random delay, flashes green, and measures how many milliseconds pass before you click. A simple state machine drives four screens (waiting, ready, result, and too-early) and keeps track of your personal best score.

Key Skills:
  • State machine implemented with a switch statement
  • Timing with millis()
  • Custom web font loading via preload() and loadFont()
  • Randomized delays with random()
  • Responsive canvas sizing with windowResized()

by Anonymous Β· 674 views

πŸ“– Read Docs πŸ‘οΈ View
792 AI Lissajous Explorer - Mathematical Spirograph Patterns - xelsed.ai - p5.js creative coding sketch

AI Lissajous Explorer - Mathematical Spirograph Patterns - xelsed.ai

This sketch draws a glowing, colorful Lissajous curve - a classic mathematical spirograph pattern created by combining two sine waves at different frequencies. Three sliders let you control the A and B frequencies and the phase offset, instantly reshaping the curve from a circle into figure-eights and intricate woven patterns.

Key Skills:
  • Parametric curves (Lissajous equations)
  • HSB color mode
  • Custom shapes with beginShape/vertex/endShape
  • DOM elements (createSlider, createSpan, createDiv)
  • Trail effect via semi-transparent background

by Anonymous Β· 493 views

πŸ“– Read Docs πŸ‘οΈ View
793 AI Pendulum Wave - Mesmerizing Harmonic Motion Physics - xelsed.ai - p5.js creative coding sketch

AI Pendulum Wave - Mesmerizing Harmonic Motion Physics - xelsed.ai

This sketch simulates 15 pendulums of gradually increasing arm length, all released from the same starting angle so they swing at slightly different frequencies. As they oscillate, the pendulums drift in and out of phase with each other, producing traveling wave patterns, moments of perfect synchronization, and eventual chaotic motion - a classic physics demonstration rendered with glowing HSB-colored trails.

Key Skills:
  • Simple harmonic motion physics
  • ES6 classes and object-oriented design
  • HSB color mode with alpha
  • Arrays of custom objects
  • Motion trails via position history arrays

by Anonymous Β· 644 views

πŸ“– Read Docs πŸ‘οΈ View
794 AI Symmetry Canvas - Kaleidoscope Drawing with 6-Fold Mirroring - xelsed.ai - p5.js creative coding sketch

AI Symmetry Canvas - Kaleidoscope Drawing with 6-Fold Mirroring - xelsed.ai

This sketch turns mouse movement into a mesmerizing mandala by mirroring every line segment you draw six times around the center of the canvas. Colors shift through the rainbow based on the angle from center, and a subtle fade effect leaves gentle trails as the pattern builds up.

Key Skills:
  • Rotational symmetry with translate/rotate/push/pop
  • HSB color mode and hue mapping
  • Trigonometry with atan2() for angle calculation
  • map() for value remapping with clamping
  • Fade/trail effect via low-alpha overlay

by Anonymous Β· 459 views

πŸ“– Read Docs πŸ‘οΈ View
795 AI Gravity Painter - Click to Create Orbital Particle Wells - xelsed.ai - p5.js creative coding sketch

AI Gravity Painter - Click to Create Orbital Particle Wells - xelsed.ai

This sketch simulates glowing gravity wells that pull a swarm of 250 particles into swirling orbital trails using real inverse-square physics. Clicking anywhere spawns a pulsing well that attracts nearby particles until it fades away after ten seconds, leaving behind streaking, color-shifting trails.

Key Skills:
  • Vector math with p5.Vector
  • Inverse-square force simulation
  • Classes and OOP in JavaScript
  • HSB color mode
  • Particle systems

by Anonymous Β· 713 views

πŸ“– Read Docs πŸ‘οΈ View
796 AI Temporal Dendrite - Time-Driven Fractal Tree - xelsed.ai - p5.js creative coding sketch

AI Temporal Dendrite - Time-Driven Fractal Tree - xelsed.ai

This sketch grows a recursive fractal tree whose shape is driven entirely by the current time of day - the hour sets how many main branches sprout from the trunk, the minute controls how wide those branches fan out, and the second (plus milliseconds) creates a gentle continuous sway. Branch color shifts from dark brown at the roots to spring green at the outermost twigs, and Perlin noise adds organic, non-repeating wobble to every tip.

Key Skills:
  • Recursion
  • push()/pop() matrix stacking
  • translate() and rotate() transforms
  • HSB color mode and lerp() color interpolation
  • Perlin noise for organic motion

by Anonymous Β· 679 views

πŸ“– Read Docs πŸ‘οΈ View
797 AI Liquid Chrome Mirror - Mouse Velocity Metallic Distortion - xelsed.ai - p5.js creative coding sketch

AI Liquid Chrome Mirror - Mouse Velocity Metallic Distortion - xelsed.ai

This WEBGL sketch raymarches a chrome-like sphere in real time, deforming its surface with sine-wave ripples whenever the mouse moves. The faster the cursor travels, the stronger the ripples become, while the reflective surface renders a fake procedural environment in shifting blues and purples for a molten-metal look.

Key Skills:
  • WEBGL custom shaders in p5.js
  • GLSL vertex & fragment shaders
  • Raymarching with signed distance functions (SDFs)
  • Uniforms bridging JavaScript and GLSL
  • Mouse velocity tracking with lerp smoothing

by Anonymous Β· 483 views

πŸ“– Read Docs πŸ‘οΈ View
798 AI Boids Flocking - Emergent Swarm Intelligence Watch 100 birds flock together using Craig Reynolds - p5.js creative coding sketch

AI Boids Flocking - Emergent Swarm Intelligence Watch 100 birds flock together using Craig Reynolds

This sketch simulates a flock of 100 triangular birds ('boids') that move around the screen following three simple local rules β€” separation, alignment, and cohesion β€” plus a fourth rule that makes them flee the mouse cursor like a predator. No bird is told to flock; the group behavior emerges purely from each boid reacting to its nearby neighbors.

Key Skills:
  • Object-oriented programming with ES6 classes
  • Vector math with p5.Vector (add, sub, limit, setMag, heading)
  • Steering behaviors (separation, alignment, cohesion)
  • Emergent behavior from simple local rules
  • HSB color mode mapped from direction angle

by Anonymous Β· 445 views

πŸ“– Read Docs πŸ‘οΈ View
799 AI Inverse Kinematics Tentacle - Snake Chain Animation Mesmerizing snake-like chain that follows yo - p5.js creative coding sketch

AI Inverse Kinematics Tentacle - Snake Chain Animation Mesmerizing snake-like chain that follows yo

This sketch creates a mesmerizing snake-like tentacle made of 15 connected segments that smoothly chases the mouse cursor using inverse kinematics. The tentacle wobbles organically as it moves, colored in a gradient from purple at the head to cyan at the tail, with a glowing circular tip.

Key Skills:
  • Inverse kinematics (IK)
  • Trigonometry with atan2/sin/cos
  • Linear interpolation (lerp/lerpColor)
  • Chained/propagated state
  • Low-pass filtering for smoothing

by Anonymous Β· 427 views

πŸ“– Read Docs πŸ‘οΈ View
800 AI Voronoi Crystals - Stained Glass Tessellation Beautiful crystal formations using Voronoi diagram - p5.js creative coding sketch

AI Voronoi Crystals - Stained Glass Tessellation Beautiful crystal formations using Voronoi diagram

This sketch generates a living stained-glass window by scattering colorful seed points across the canvas and computing the Voronoi diagram between them every frame. Each cell is filled with a slowly pulsing HSB color and outlined with a soft glowing edge, while the seeds themselves drift and bounce off the canvas walls, so the whole mosaic subtly reshapes itself forever. Clicking anywhere on the canvas drops a brand new seed, instantly splitting nearby cells and growing the crystal pattern.

Key Skills:
  • Voronoi diagrams
  • Polygon half-plane clipping
  • HSB color mode
  • p5.Vector math
  • Object-oriented data with plain objects

by Anonymous Β· 448 views

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