rgb_color
(
red
,
green
,
blue
)
Returns a color with the provided components for red (R), green (G) and blue (B) and a certain degree of opacity (alpha, A).
red
red component [0-255]
green
green component [0-255]
blue
blue component [0-255]
show_graphic(rectangle(50, 50, rgb_color(255, 0, 0)))
show_graphic(rectangle(50, 50, rgb_color(0, 255, 0)))
show_graphic(rectangle(50, 50, rgb_color(127, 127, 127)))
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)