Color
A color representation in different formats.
-
Color()
-
Color(r: int, g: int, b: int, a: int = 255)
Properties
Name | Description | Type |
---|---|---|
r | The red component of the color | int |
g | The green component of the color | int |
b | The blue component of the color | int |
a | The alpha component of the color | int |
hex | The hexadecimal representation of the color | str |
hsv | The HSV representation of the color | tuple[float,float,float,float] |