lib/kissy/5.0.0-alpha.3/build/color-debug.js
function (cfg) {
                var self = this, current;
                if (!('h' in cfg && 's' in cfg && 'l' in cfg)) {
                    current = self.getHSL();
                    util.each([
                        'h',
                        's',
                        'l'
                    ], function (x) {
                        if (x in cfg) {
                            current[x] = cfg[x];
                        }
                    });
                    cfg = current;
                }
                self.set(hsl2rgb(cfg));
            }
function (cfg) {
                var self = this, current;
                if (!('h' in cfg && 's' in cfg && 'l' in cfg)) {
                    current = self.getHSL();
                    util.each([
                        'h',
                        's',
                        'l'
                    ], function (x) {
                        if (x in cfg) {
                            current[x] = cfg[x];
                        }
                    });
                    cfg = current;
                }
                self.set(hsl2rgb(cfg));
            }
function ( cfg ) { var self = this , current ; if ( ! ( 'h' in cfg && 's' in cfg && 'l' in cfg ) ) { current = self . getHSL ( ) ; util . each ( [ 'h' , 's' , 'l' ] , function ( x ) { if ( x in cfg ) { current [ x ] = cfg [ x ] ; } } ) ; cfg = current ; } self . set ( hsl2rgb ( cfg ) ) ; }
Set value by hsl
@param cfg
@param cfg.h
@param cfg.s
@param cfg.l
Set value by hsl