Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Light Spectrums

Andreu Correa Casablanca edited this page Mar 11, 2015 · 2 revisions

Light Spectrum are mainly handled by the ALightSpectrum class in the Litipk.ColorSharp.LightSpectrums namespace. All light spectrum are represented by subclasses of the former.

The ALightSpectrum class derives from AConvertibleColor, because this, every light spectrum can be converted to any of the supported color spaces.

Light Spectrum Classes

Currently there are three interesting classes that you can use to represent light info.

RegularLightSpectrum

Used to handle light spectrum represented in form of evenly-spaced data points. Currently (but this should be improved) linear interpolation is used to show the spectrum intensity for a wavelength without assigned data point.

TabularLightSpectrum

Used to handle light spectrum represented in form of arbitrary placed data points. Currently (but this should be improved) linear interpolation is used to show the spectrum intensity for a wavelength without assigned data point.

BlackBodySpectrum

You can obtain the theoretical and ideal black body spectrum given a temperature (measured in Kelvin degrees).

Clone this wiki locally