Skip to content

SpectrumSliderThumb

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/SpectrumSliderThumb.ts for the most up-to-date information.

Overview

SpectrumSliderThumb has (a) a thin cursor that lies on the track and (b) a teardrop-shaped handle that drops down below the track and depicts the selected color. Origin is at top center.

@author Sam Reid (PhET Interactive Simulations)

Class SpectrumSliderThumb

import { SpectrumSliderThumb } from 'scenerystack/scenery-phet';

Constructor

new SpectrumSliderThumb( property : TReadOnlyProperty<number>, providedOptions? : SpectrumSliderThumbOptions )

Instance Methods

setCenterY( centerY : number ) : this

Position the thumb in the track.

dispose()

Type SpectrumSliderThumbOptions

import type { SpectrumSliderThumbOptions } from 'scenerystack/scenery-phet';

Source Code

See the source for SpectrumSliderThumb.ts in the scenery-phet repository.