(v: string | IColor)
| 36 | } |
| 37 | |
| 38 | export function normalizeColor(v: string | IColor): IColor { |
| 39 | if (typeof v === 'string') { |
| 40 | return parseColor(v); |
| 41 | } else { |
| 42 | return v; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | /** Returns a list of color channels for a given color space. */ |
| 47 | export function getColorChannels( |
no test coverage detected