parse_color_value
Parse the color value provided and return a number between 0 and 1.
def parse_color_value(
value: int | str,
max_val: int = 255
) - > float
Parse the color value provided and return a number between 0 and 1.
Parameters
| Name | Type | Description |
|---|---|---|
| value | `int | str` |
| max_val | int = 255 | Maximum range value. Defaults to 255. |
Returns
| Type | Description |
|---|---|
float | A number between 0 and 1. |