public/javascripts/yui/colorpicker/colorpicker-debug.js
function() {
            var size = this.get(this.OPT.PICKER_SIZE),
                h = this.get(this.OPT.HUE);

            h = size - Math.round(h / 360 * size);
            
            // 0 is at the top and bottom of the hue slider.  Always go to
            // the top so we don't end up sending the thumb to the bottom
            // when the value didn't actually change (e.g., a conversion
            // produced 360 instead of 0 and the value was already 0).
            if (h === size) {
                h = 0;
            }
            this.logger.log("Hue slider is being set to " + h);

            this.hueSlider.setValue(h, this.skipAnim);
        }
function() {
            var size = this.get(this.OPT.PICKER_SIZE),
                h = this.get(this.OPT.HUE);

            h = size - Math.round(h / 360 * size);
            
            // 0 is at the top and bottom of the hue slider.  Always go to
            // the top so we don't end up sending the thumb to the bottom
            // when the value didn't actually change (e.g., a conversion
            // produced 360 instead of 0 and the value was already 0).
            if (h === size) {
                h = 0;
            }
            this.logger.log("Hue slider is being set to " + h);

            this.hueSlider.setValue(h, this.skipAnim);
        }
function ( ) { var size = this . get ( this . OPT . PICKER_SIZE ) , h = this . get ( this . OPT . HUE ) ; h = size - Math . round ( h / 360 * size ) ; // 0 is at the top and bottom of the hue slider.  Always go to // the top so we don't end up sending the thumb to the bottom // when the value didn't actually change (e.g., a conversion // produced 360 instead of 0 and the value was already 0). if ( h === size ) { h = 0 ; } this . logger . log ( "Hue slider is being set to " + h ) ; this . hueSlider . setValue ( h , this . skipAnim ) ; }
Moves the hue slider into the position dictated by the current state
of the control
@method _updateHueSlider
@protected
Moves the hue slider into the position dictated by the current state of the control