constructor(r, g, b) {
        this.r = 1;
        this.g = 1;
        this.b = 1;

        this.isColor = true;

        this.hslA = { h: 0, s: 0, l: 0 };
        this.hslB = { h: 0, s: 0, l: 0 };

        if (g === undefined && b === undefined) {
            this.set(r);
        } else {
            this.setRGB(r, g, b);
        }
    }
@author pschroen / https://ufo.ai/

Based on https://github.com/mrdoob/three.js/blob/dev/src/math/Color.js