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).
HSL cylinder: SharkD via Wikimedia Commonshuehue of the color [0-360]
saturationsaturation of the color [0-1]
lightnessthe 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 c30aa49 (Tue, 25 Nov 2025 16:55:08 GMT)