(value)
| 2443 | return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")"); |
| 2444 | } |
| 2445 | function hex(value) { |
| 2446 | value = Math.max(0, Math.min(255, Math.round(value) || 0)); |
| 2447 | return (value < 16 ? "0" : "") + value.toString(16); |
| 2448 | } |
| 2449 | function hsla(h, s, l, a) { |
| 2450 | if (a <= 0) h = s = l = NaN; |
| 2451 | else if (l <= 0 || l >= 1) h = s = NaN; |
no test coverage detected