p5.js Coding Tutorial | Optical Illusion with Sound 🎡 @pattvira
p5.js Coding Tutorial | Optical Illusion with Sound 🎡  @pattvira
Uploaded April 2024 | Updated November 2026, 14 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
πŸ”— Optical Illusion with Sound Code: editor.p5js.org/pattvira/sketches/yhFKHZ0K4
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

Related Videos:
πŸ”— The Making of Animation - Beautiful Trigonometry Tutorial: youtu.be/KUXShW3C9rs

Timestamps:
0:00 Intro
0:44 Create one oscillating circle
3:46 Create multiple oscillating circles to get an optical illusion effect
7:25 Create a Ball class
12:12 Upload, preload, and play .mp3 files
16:08 Play a note when ball passes through the origin
22:35 Create multiple rings of Ball objects
27:18 Make it pretty!
p5.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 DivisionSound Mini Series | EPISODE 3 - p5. Envelopep5.js Coding Tutorial | Basics of Particle Systemsp5.js Coding Tutorial | Interactive Clock Cursor Effectp5.js Coding Tutorial | Collage (Image Manipulation)
Patt Vira |

p5.js Coding Tutorial | Optical Illusion with Sound 🎡

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER