svgen
.
color
.numbers
index
/home/vkottler/src/vkottler/workspace/svgen/svgen/color/numbers.py
svgen - A module for working with number primitives.
Functions
css_number_to_ratio
(val: Union[float, int, str]) -> float
Given a few possible types of input, return a ratio between 0.0 and 1.0.
parse_ctor
(value: str, prefix: str, suffix: str = None, sep: str = ',') -> List[str]
Parse individual arguments out of some color constructor.
Data
List
= typing.List
Union
= typing.Union