Skip to content

SpectrumSliderThumb

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.