Hi guys,
I was reading an article about colors and functions in GLSL and I saw an exercise to create a colorful flag with step function.
My concern is what kind of math do I have to know and how to use it, how to think, whenever I want to create something I want, something like in the image below, or the flag.
Thanks in advance!