04/02/2020
Chris had given some task to do during the first few lessons.
We had to watch a video he sent us (below) and we had to follow the video and test the code provide within the video on “processing” which is a software you can code many things.
YouTube Video:
I had to copy out the code from the video, so I paused it then copied it (screenshot below)

Now as you can see after I run the code this is what I’ve so far (screenshot below) I only have one line of rectangles.

I made a mistake within the code and I fixed it (screen shot below) and I also added some comments in the code to help out with some of the code.

Now this is the code when running after I fixed the code. (screenshot below)

I’ve messed around with the code the change the rectangles , the amount and sizes. (screenshot below) as you can see (below) there are a lot more rectangles than before.

This picture (below) is called “HSB Colour Wheel” and this was used in the code (above).

The HSB (Hue, Saturation, B rightness) color model defines a color space in terms of three constituent components:
- Hue : the color type (such as red, blue, or yellow).
- Ranges from 0 to 360° in most applications. (each value corresponds to one color : 0 is red, 45 is a shade of orange and 55 is a shade of yellow).
- Saturation : the intensity of the color.
- Ranges from 0 to 100% (0 means no color, that is a shade of grey between black and white; 100 means intense color).
- Also sometimes called the “purity” by analogy to the colorimetric quantities excitation purity.
- Brightness (or Value) : the brightness of the color.
- Ranges from 0 to 100% (0 is always black; depending on the saturation, 100 may be white or a more or less saturated color).
Leave a comment