HSBA

HC Graphics Direct Graphics HSBA
HSB reHSB

HSBA hue saturation brightness


outputs an integer color of the format

red:8 green:8 blue:8 alpha:8 bits

from hue between 0 and 360 (hue=0 is red, hue=120 is green, hue=240 is blue) and saturation and brightness between 0 and 1.

Alpha is used for transparency - 0 is transparent.

Example:

cS
repeat 200 [
	setPC HSBA 360*repcount/200 1 1 1-repCount/200
	box
	rt 30 fd 1 lt 30
]

See also:

Example:

References:

HSB reHSB