|
Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
|
| 'type(rtn)' Cope.colors.parse_color | ( | * | args, |
| Literal['html', 'rgb', 'rgba', 'opengl', 'hsv', 'hls', 'yiq'] | rtn = 'rgb', |
||
| ** | kwargs | ||
| ) |
One color function to rule them all! Parses a color, however you care to pass it, and returns it however you like.
Input Schemes:
Return Schemes:
If a is not provided, but it is selected to be returned, it defaults to the max (255, usually)
NOTE: Don't pass OpenGL colors as dicts or as keyword arguements. It will interpret them as RGBA parameters.