VisibleColor¶
Overview¶
Provides a 2-way mapping between wavelength and Color. The mapping is performed using a color lookup table.
Note that the sRGB colorspace is not capable of representing all visible colors. So in converting visible wavelengths to Color, it is possible to lose some color information.
@author Chris Malley (PixelZoom, Inc.)
Type WavelengthToColorOptions¶
- irColor?: TColorSubset
- uvColor?: TColorSubset
- reduceIntensityAtExtrema?: boolean
Source Code¶
See the source for VisibleColor.ts in the scenery-phet repository.