p5.js Coding Tutorial | Pastel Gradient Screensaver @pattvira
p5.js Coding Tutorial | Pastel Gradient Screensaver  @pattvira
Uploaded April 2025 | Updated November 2026, 11 hours ago
LET'S CONNECT
✨ Sign up for my newsletter at pattvira.com
✨ Instagram: instagram.com/pattvira
✨ Twitter: twitter.com/pattvira
--
Links:
πŸ”— p5.js editor: editor.p5js.org
πŸ”— Pastel Gradient Screensaver Code: editor.p5js.org/pattvira/sketches/QOtQJc5H7
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

References:
πŸ”— Javascript Canvas API: developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D

Timestamps:
0:00 Intro
1:32 Explain Canvas API (CanvasRenderingContext2D)
2:37 Access Canvas API through p5.js
3:37 Create a radial gradient using createRadialGradient()
7:49 Create a glowing effect
10:14 Generate random pastel colors
11:21 Create an animating gradient Ball class
17:39 Write a detection collision method
18:51 Create multiple moving gradient ball objects
p5.js Coding Tutorial | Pastel Gradient Screensaverp5.js Coding Tutorial | Oscillating Wave Pattern (in 2D)p5.js Coding Tutorial | Sparkly Magic Wand ✨p5.js Coding Tutorial | Game of Life Clockp5.js Coding Tutorial | Optical Illusion with Sound 🎡p5.js Coding Tutorial | Interactive Display of EllipsesThe Creative Framework That Keeps Me Showing Up ✨p5.js Coding Tutorial | Double Pendulum☁️ Code With Me | cute cozy lofi beatsp5.js Coding Tutorial | Pixelated Kaleidoscopep5.js Coding Tutorial |  Car in Motion (Variables)p5.js Coding Tutorial | Album Cover - Unknown Pleasures by Joy Division
Patt Vira |

p5.js Coding Tutorial | Pastel Gradient Screensaver

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER