Color.from_rgb255

classmethod Color.from_rgb255(r, g, b)[source]

Construct a color from RGB255 components.

Parameters:
rint & valuerange[0, 255]

Red component.

gint & valuerange[0, 255]

Green component.

bint & valuerange[0, 255]

Blue component.

Returns:
compas.colors.Color