kolor.js
function HSLA_TO_RGBA() {
        var h = this.h();
        var s = this.s();
        var l = this.l();
        var a = this.a();
        var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
        var p = 2 * l - q;
        var hk = h / 360;
        var t = {};
        var rgb = {};

        t.r = hk + 1 / 3;
        t.g = hk;
        t.b = hk - 1 / 3;

        var c;

        for (c in t) {
            t[c] < 0 && t[c] ++;
            t[c] > 1 && t[c] --;
        }

        for (c in t) {
            if (t[c] < 1 / 6) {
                rgb[c] = p + ((q - p) * 6 * t[c]);
            } else if (1 / 6 <= t[c] && t[c] < 0.5) {
                rgb[c] = q;
            } else if (0.5 <= t[c] && t[c] < 2 / 3) {
                rgb[c] = p + ((q - p) * 6 * (2 / 3 - t[c]));
            } else { // t[c] >= 2 / 3
                rgb[c] = p;
            }
            rgb[c] *= 255;
        }

        return kolor.rgba(rgb.r, rgb.g, rgb.b, a);
    }
function HSLA_TO_RGBA() {
        var h = this.h();
        var s = this.s();
        var l = this.l();
        var a = this.a();
        var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
        var p = 2 * l - q;
        var hk = h / 360;
        var t = {};
        var rgb = {};

        t.r = hk + 1 / 3;
        t.g = hk;
        t.b = hk - 1 / 3;

        var c;

        for (c in t) {
            t[c] < 0 && t[c] ++;
            t[c] > 1 && t[c] --;
        }

        for (c in t) {
            if (t[c] < 1 / 6) {
                rgb[c] = p + ((q - p) * 6 * t[c]);
            } else if (1 / 6 <= t[c] && t[c] < 0.5) {
                rgb[c] = q;
            } else if (0.5 <= t[c] && t[c] < 2 / 3) {
                rgb[c] = p + ((q - p) * 6 * (2 / 3 - t[c]));
            } else { // t[c] >= 2 / 3
                rgb[c] = p;
            }
            rgb[c] *= 255;
        }

        return kolor.rgba(rgb.r, rgb.g, rgb.b, a);
    }
function HSLA_TO_RGBA ( ) { var h = this . h ( ) ; var s = this . s ( ) ; var l = this . l ( ) ; var a = this . a ( ) ; var q = l < 0.5 ? l * ( 1 + s ) : l + s - l * s ; var p = 2 * l - q ; var hk = h / 360 ; var t = { } ; var rgb = { } ; t . r = hk + 1 / 3 ; t . g = hk ; t . b = hk - 1 / 3 ; var c ; for ( c in t ) { t [ c ] < 0 && t [ c ] ++ ; t [ c ] > 1 && t [ c ] -- ; } for ( c in t ) { if ( t [ c ] < 1 / 6 ) { rgb [ c ] = p + ( ( q - p ) * 6 * t [ c ] ) ; } else if ( 1 / 6 <= t [ c ] && t [ c ] < 0.5 ) { rgb [ c ] = q ; } else if ( 0.5 <= t [ c ] && t [ c ] < 2 / 3 ) { rgb [ c ] = p + ( ( q - p ) * 6 * ( 2 / 3 - t [ c ] ) ) ; } else { // t[c] >= 2 / 3
 rgb [ c ] = p ; } rgb [ c ] *= 255 ; } return kolor . rgba ( rgb . r , rgb . g , rgb . b , a ) ; }
Converts HSLA color to RGBA.
Converts HSLA color to RGBA .