Color¶
This page contains classes defined in hakowan.common.color
module.
ColorLike: TypeAlias = float | int | str | tuple | list
module-attribute
¶
Color-like type alias is types that can be converted to a color.
Color
¶
A minimal representation of color.
Source code in hakowan/common/color.py
red
property
¶
Red channel.
green
property
¶
Green channel
blue
property
¶
Blue channel
data
property
¶
Raw data
from_hex(hex_color)
classmethod
¶
Construct color from hex.