When I choose "help" on the
change pen color by ()block, it says there are 200 defined pen colors.
Offline
So, they are computed? So, how can I compute them? What is the algorithm? If (255, 0, 0)
(red) is the first color, then what is the next rgb value?
Thanks.
Vic
Offline
VictorNorman wrote:
So, they are computed? So, how can I compute them? What is the algorithm? If (255, 0, 0)
(red) is the first color, then what is the next rgb value?
Thanks.
Vic
in scratch it works with HSB, not RGB...
the pen color is hue, brightness is brightness
try to find a way to convert
Offline
VictorNorman wrote:
So, they are computed? So, how can I compute them? What is the algorithm? If (255, 0, 0)
(red) is the first color, then what is the next rgb value?
Thanks.
Vic
It's in HSL format, and the hue is calculated like this:
((Input) * ((360) / (200)))
Offline