ragraph.colors.utils
#
Color utility methods.
Module Contents#
Functions#
|
Convert [0.0-1.0] scaled RGB to [0-255]. |
|
Convert [0-255] scaled RGB to [0.0-1.0]. |
|
Convert RGB color to hex code. |
|
Convert hex code to RGB tuple. |
- ragraph.colors.utils.rgb1_to_rgb(r: float, g: float, b: float) Tuple[int, int, int] #
Convert [0.0-1.0] scaled RGB to [0-255].
- ragraph.colors.utils.rgb_to_rgb1(r: int, g: int, b: int) Tuple[float, float, float] #
Convert [0-255] scaled RGB to [0.0-1.0].
- ragraph.colors.utils.rgb_to_hex(r: int, g: int, b: int) str #
Convert RGB color to hex code.
- ragraph.colors.utils.hex_to_rgb(h: str) Tuple[int, int, int] #
Convert hex code to RGB tuple.