MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / constructor

Method constructor

src/utils/color/hsl.js:16–21  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected