Skip to content

WavelengthSlider

Overview

Slider that shows a spectrum of colors for selecting a wavelength.

@author Chris Malley (PixelZoom, Inc.) @author Sam Reid (PhET Interactive Simulations)

Class WavelengthSlider

@deprecated use WavelengthNumberControl, or Slider.js with SpectrumSliderTrack and SpectrumSliderTrack, see https://github.com/phetsims/scenery-phet/issues/729

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

Constructor

new WavelengthSlider( wavelengthProperty : TProperty<number>, providedOptions? : WavelengthSliderOptions )

Instance Methods

Type WavelengthSliderOptions

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

Source Code

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