hsl_color
(
hue
,
saturation
,
lightness
)
Returns a color with the provided hue (H), saturation (S), lightness (L) and a certain degree of opacity (alpha, A).
hue
hue of the color [0-360]
saturation
saturation of the color [0-1]
lightness
the amount of white or black applied [0-1]. Fully saturated colors have a lightness value of 1/2.
show_graphic(rectangle(50, 50, hsl_color(0, 1.0, 1.0)))
show_graphic(rectangle(50, 50, hsl_color(120, 1.0, 0.5)))
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version ede3c94 (Fri, 23 May 2025 14:43:18 GMT)