public/javascripts/yui/colorpicker/colorpicker-debug.js
function(newOffset) {
            this.logger.log("hue update: " + newOffset , "warn");

            var h        = this._getH(),
                rgb      = Color.hsv2rgb(h, 1, 1),
                styleDef = "rgb(" + rgb.join(",") + ")";

            this.set(this.OPT.HUE, h, true);

            // set picker background to the hue
            Dom.setStyle(this.getElement(this.ID.PICKER_BG), "background-color", styleDef);

            if (this.hueSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
                this._getValuesFromSliders();
            }

            this._updateFormFields();
            this._updateSwatch();
        }
function(newOffset) {
            this.logger.log("hue update: " + newOffset , "warn");

            var h        = this._getH(),
                rgb      = Color.hsv2rgb(h, 1, 1),
                styleDef = "rgb(" + rgb.join(",") + ")";

            this.set(this.OPT.HUE, h, true);

            // set picker background to the hue
            Dom.setStyle(this.getElement(this.ID.PICKER_BG), "background-color", styleDef);

            if (this.hueSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
                this._getValuesFromSliders();
            }

            this._updateFormFields();
            this._updateSwatch();
        }
function ( newOffset ) { this . logger . log ( "hue update: " + newOffset , "warn" ) ; var h = this . _getH ( ) , rgb = Color . hsv2rgb ( h , 1 , 1 ) , styleDef = "rgb(" + rgb . join ( "," ) + ")" ; this . set ( this . OPT . HUE , h , true ) ; // set picker background to the hue Dom . setStyle ( this . getElement ( this . ID . PICKER_BG ) , "background-color" , styleDef ) ; if ( this . hueSlider . valueChangeSource !== Slider . SOURCE_SET_VALUE ) { this . _getValuesFromSliders ( ) ; } this . _updateFormFields ( ) ; this . _updateSwatch ( ) ; }
Event handler for the hue slider.
@method _onHueSliderChange
@param newOffset {int} pixels from the start position
@protected
Event handler for the hue slider .