kolor.js
function ADD_ALPHA() {
        var space = this.space();
        var channels = SPACES[space].channels;
        var result = [];

        var l = channels.length;
        for (var i = 0; i < l; i++) {
            result.push(this[channels[i].name]());
        }
        result.push(1);
        return new kolor[space + 'A'](result);
    }
function ADD_ALPHA() {
        var space = this.space();
        var channels = SPACES[space].channels;
        var result = [];

        var l = channels.length;
        for (var i = 0; i < l; i++) {
            result.push(this[channels[i].name]());
        }
        result.push(1);
        return new kolor[space + 'A'](result);
    }
function ADD_ALPHA ( ) { var space = this . space ( ) ; var channels = SPACES [ space ] . channels ; var result = [ ] ; var l = channels . length ; for ( var i = 0 ; i < l ; i ++ ) { result . push ( this [ channels [ i ] . name ] ( ) ) ; } result . push ( 1 ) ; return new kolor [ space + 'A' ] ( result ) ; }
Produces a new color object by adding alpha channel to the old one.
Produces a new color object by adding alpha channel to the old one .