Digital Colour – Introduction to Hue, Saturation and Lightness

Digital Colour – Introduction to Hue, Saturation and Lightness

Everything you see on a screen is created by colours. I know that’s obvious. What else would it be. But think of a film or a photograph. All the different colours, tones and shades; as many as your eye can see. (But more about that another time.
The sketch above shows a linear spectrum of colours; Red, to Yellow, to Green, to Blue, to Pink and back again.

P5 Concenteric Circles

P5 Concenteric Circles

Here’s a P5js sketch with concentric circles created using a for loop. This is what happens when x += 50. Change x to += a smaller number to draw more circles closer together. This is called iteration. Its one of the best ways to make the code do the work!
There is a bit of randomness hidden behind the commented out code. Remove the // and see what happens.