_color

Module Contents

Classes

Color

Represents a color in RGBA format.

class Color

Represents a color in RGBA format.

All values should from 0 to 255.

red: int
green: int
blue: int
alpha: int
to_normalized_rgba_list() list[float]

Convert to rgba list where each value is between 0 and 1.

Returns:

The list.

to_normalized_rgb_list() list[float]

Convert to rgb list where each value is between 0 and 1.

Returns:

The list.