Introduction to Shaders: Colors! (4/4)

LET'S CONNECT ✨ Sign up for my newsletter at https://www.pattvira.com ✨ Instagram:   / pattvira   ✨ Twitter:   / pattvira   -- ⭐ Watch the entire Shaders Series here:    • Shaders Series   Links: 🔗 p5.js editor: https://editor.p5js.org/ 🔗 Shaders Series Ep.4 Code: https://editor.p5js.org/pattvira/sket... References: 🔗 Cosine-based Palette: 🔗 ‪@InigoQuilez‬ 's article: https://iquilezles.org/articles/palet... 🔗 ‪@InigoQuilez‬ 's video explanation:    • A simple formula to create beautiful color...   🔗 Interactive tool: https://apps.fenixfox-studios.com/cos... Timestamps: 0:00 Intro 0:11 Introduce mix() function 02:07 Change the blend ratio using uTime 03:09 Change the blend ratio using position 05:16 Change the blend ratio using shaping functions (step & smoothstep) 06:26 Change the blend ratio using shaping functions (distance functions) 09:28 Introduce cosine-based color palette 11:42 Bonus! Fractal!