kolor.js
function HSLA_TO_HSVA() {
        var h = this.h();
        var s = this.s();
        var l = this.l();
        var a = this.a();

        l *= 2;
        s *= (l <= 1) ? l : 2 - l;
        var v = (l + s) / 2;
        var sv = (2 * s) / (l + s);
        return kolor.hsva(h, sv, v, a);
    }
function HSLA_TO_HSVA() {
        var h = this.h();
        var s = this.s();
        var l = this.l();
        var a = this.a();

        l *= 2;
        s *= (l <= 1) ? l : 2 - l;
        var v = (l + s) / 2;
        var sv = (2 * s) / (l + s);
        return kolor.hsva(h, sv, v, a);
    }
function HSLA_TO_HSVA ( ) { var h = this . h ( ) ; var s = this . s ( ) ; var l = this . l ( ) ; var a = this . a ( ) ; l *= 2 ; s *= ( l <= 1 ) ? l : 2 - l ; var v = ( l + s ) / 2 ; var sv = ( 2 * s ) / ( l + s ) ; return kolor . hsva ( h , sv , v , a ) ; }
Converts HSLA color to HSVA.
Converts HSLA color to HSVA .