Uploaded February 2024 | Updated November 2026, 1 minute 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
π Color Gradient Animation #2 Code: editor.p5js.org/pattvira/sketches/CtcFBXWjw
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π Linear Interpolation (Coding math video): youtu.be/IwOZV19CH2Y
π lerpColor() Function: p5js.org/reference/#/p5/lerpColor
Timestamps:
0:00 Intro
0:10 Linear Interpolation 101
3:49 Creating a color gradient in a block shape
9:42 Creating a Block class
16:40 Animating the Block object
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
π Color Gradient Animation #2 Code: editor.p5js.org/pattvira/sketches/CtcFBXWjw
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π Linear Interpolation (Coding math video): youtu.be/IwOZV19CH2Y
π lerpColor() Function: p5js.org/reference/#/p5/lerpColor
Timestamps:
0:00 Intro
0:10 Linear Interpolation 101
3:49 Creating a color gradient in a block shape
9:42 Creating a Block class
16:40 Animating the Block object




![βοΈ Code With Me β Summer Edition | cozy lofi beats
βοΈ Whether youβre typing along or just lurking for cozy vibes, youβre totally invited. Come chill with us all summer inside SPARK, my creative coding community / nerdy summer camp.
ποΈ Join the fun: https://www.pattvira.com/spark
π Chladni Patterns tutorial: https://youtu.be/J-siGcsK2k8
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:
shushubobo - coffee time
[no copyright music] https://www.youtube.com/watch?v=7PvYu-1iEbY
shushubobo - cherry blossom kitkat
[no copyright music] https://www.youtube.com/watch?v=t1dGx2fSgC8
shushubobo - what the bunny doin
[no copyright music] https://www.youtube.com/watch?v=yEmvQKkuLL0
shushubobo - oh my cat
[no copyright music] https://www.youtube.com/watch?v=UHwEZPDXR2Y βοΈ Code With Me β Summer Edition | cozy lofi beats](https://i.ytimg.com/vi/Zu2GZWhHkks/mqdefault.jpg)





