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!
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!



![βοΈ Code With Me | cute cozy lofi beats
Another code with me video! For a full tutorial, check it out here:
π Collisions without a Physics Library tutorial: https://youtu.be/EFDesKpLCG0?si=GvFj7oLF9-8jo8CF
LETS CONNECT
β¨ Sign up for my newsletter at https://www.pattvira.com
β¨ Instagram: https://www.instagram.com/pattvira
β¨ Twitter: https://twitter.com/pattvira
πΆ Music by:
Oneul - Cozy Night: https://www.youtube.com/watch?v=mWTZu5yuCi0
Oneul - Starlight ice cream: https://www.youtube.com/watch?v=vLgf6prOGjA
shushubobo - oh my cat
[no copyright music] Β Β https://www.youtube.com/watch?v=UHwEZPDXR2Y
shushubobo - λμ무λ°νκΉ
[no copyright music] https://www.youtube.com/watch?v=RuAVyZwZdoU
shushubobo - favorite things
[no copyright music] https://www.youtube.com/watch?v=8EdHQKn7HM4
Chillpeach - Gameplay : https://www.youtube.com/watch?v=w4oLP7fa9Vk βοΈ Code With Me | cute cozy lofi beats](https://i.ytimg.com/vi/OQpsy2IjQnI/mqdefault.jpg)






