(arrColor, type)
| 2728 | } |
| 2729 | } |
| 2730 | function stringify(arrColor, type) { |
| 2731 | if (!arrColor || !arrColor.length) { |
| 2732 | return; |
| 2733 | } |
| 2734 | var colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2]; |
| 2735 | if (type === 'rgba' || type === 'hsva' || type === 'hsla') { |
| 2736 | colorStr += ',' + arrColor[3]; |
| 2737 | } |
| 2738 | return type + '(' + colorStr + ')'; |
| 2739 | } |
| 2740 | function lum(color, backgroundLum) { |
| 2741 | var arr = parse(color); |
| 2742 | return arr |
no outgoing calls
no test coverage detected
searching dependent graphs…