Color¶
This page contains classes defined in hakowan.common.color module.
ColorLike = 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 RGB data as a numpy array.
from_hex(hex_color)
classmethod
¶
Construct color from hex.