Uploaded April 2024 | Updated November 2026, 2 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
🔗 Interactive Falling Text Rain: editor.p5js.org/pattvira/sketches/I6nhJ_Ffq
🔗 Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
Related Videos:
🔗 Creative Coding Math - Collision Detection: youtube.com/watch?v=gUTeWOfwECc
References:
🔗 p5.js textBounds() function: p5js.org/reference/#/p5.Font/textBounds
Timestamps:
0:00 Intro
0:10 Display text on canvas
3:03 Use font.textBounds() to get text's bounding box
6:42 Write a Letter class
11:07 Write a collide() method to detect collision between Letter object and paddle
16:30 Create a bunch of Letter objects & final touches
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
🔗 Interactive Falling Text Rain: editor.p5js.org/pattvira/sketches/I6nhJ_Ffq
🔗 Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
Related Videos:
🔗 Creative Coding Math - Collision Detection: youtube.com/watch?v=gUTeWOfwECc
References:
🔗 p5.js textBounds() function: p5js.org/reference/#/p5.Font/textBounds
Timestamps:
0:00 Intro
0:10 Display text on canvas
3:03 Use font.textBounds() to get text's bounding box
6:42 Write a Letter class
11:07 Write a collide() method to detect collision between Letter object and paddle
16:30 Create a bunch of Letter objects & final touches










