Skip to content

WavelengthNumberControl

Overview

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

@author Sam Reid (PhET Interactive Simulations)

Class WavelengthNumberControl

@param wavelengthProperty - wavelength, in nm @param [options] @constructor

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

Constructor

new WavelengthNumberControl( wavelengthProperty : Property<number>, providedOptions? : WavelengthNumberControlOptions )

Instance Methods

Type WavelengthNumberControlOptions

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

Source Code

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