(color: Object)
| 57 | */ |
| 58 | |
| 59 | export default function toColorString(color: Object): string { |
| 60 | if (typeof color !== 'object') throw new PolishedError(8) |
| 61 | if (isRgba(color)) return rgba(color) |
| 62 | if (isRgb(color)) return rgb(color) |
| 63 | if (isHsla(color)) return hsla(color) |
| 64 | if (isHsl(color)) return hsl(color) |
| 65 | |
| 66 | throw new PolishedError(8) |
| 67 | } |
no test coverage detected
searching dependent graphs…