Description Computes the X, Y chromaticity coordinates for the spectrum being queried.
Syntax SpectrumComputeChromaticity spectNode, chrX, chrY
Parameters spectNode As Long Node number of the spectrum being queried.
chrX As Double X chromaticity coordinate of the spectrum.
chrY As Double Y chromaticity coordinate of the spectrum.
Example The following example creates a blackbody spectrum, computes its chromaticity coordinates and displays the results.
Dim spectNode As long Dim chrX As Double Dim chrY As Double
spectNode = SpectrumCreateBlackbody( 5900, 0.3, 0.7 ) SpectrumSetName spectNode, "BB"
SpectrumComputeChromaticity spectNode, chrX, chrY
Print "Chr X: " & chrX Print "Chr Y: " & chrY
See Also SpectrumComputeLuminousEfficacy
|