Patt Vira | p5.js Coding Tutorial | Color Changing Ball (If Statements) @pattvira | Uploaded September 2023 | Updated October 2024, 3 hours ago.
Links:
🔗 p5.js editor: editor.p5js.org
🔗 Color Changing Ball Code: editor.p5js.org/pattvira/sketches/-qb4nIZBK
🔗 Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
🔗 Variable: youtu.be/xhdIJo8lxWA
🔗 Conditional (Boolean Expression): youtu.be/V8aJnrXlGhY
🔗 Conditional (If, Else if, Else): youtu.be/btVdEgjooGE
Timestamps:
0:00 Intro
0:24 Approach
0:34 Drawing ball and lines
2:39 Moving ball
2:58 Using conditional statements to color ball
Links:
🔗 p5.js editor: editor.p5js.org
🔗 Color Changing Ball Code: editor.p5js.org/pattvira/sketches/-qb4nIZBK
🔗 Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
🔗 Variable: youtu.be/xhdIJo8lxWA
🔗 Conditional (Boolean Expression): youtu.be/V8aJnrXlGhY
🔗 Conditional (If, Else if, Else): youtu.be/btVdEgjooGE
Timestamps:
0:00 Intro
0:24 Approach
0:34 Drawing ball and lines
2:39 Moving ball
2:58 Using conditional statements to color ball