* HSL color constructor * @param {number} h Hue value between 0 and 1 * @param {number} s Saturation value between 0 and 1 * @param {number} l Lightness value between 0 and 1 * @param {number} a Alpha value between 0 and 1
(h, s, l, a = 1)
| 14 | * @param {number} a Alpha value between 0 and 1 |
| 15 | */ |
| 16 | constructor(h, s, l, a = 1) { |
| 17 | this.h = h; |
| 18 | this.s = s; |
| 19 | this.l = l; |
| 20 | this.a = a; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Creates an HSL color from an RGB color |
nothing calls this directly
no outgoing calls
no test coverage detected