(color)
| 6990 | } |
| 6991 | } |
| 6992 | function colorToString(color) { |
| 6993 | const c = [ |
| 6994 | ...color |
| 6995 | ]; |
| 6996 | if (c.length > 3) c[3] /= 255; |
| 6997 | return `rgba(${c.join(",")})`; |
| 6998 | } |
| 6999 | function desaturate(color, value) { |
| 7000 | const rgb = (0, _d3Color.rgb)(color[0], color[1], color[2], color[3] / 255); |
| 7001 | const hslColor = (0, _d3Color.hsl)(rgb); |
nothing calls this directly
no outgoing calls
no test coverage detected