Navigation: Scripting Reference Manual > Functions & Subroutines > RGBToTriStimulus

 

RGBToTriStimulus

 

Contact Us: fredsupport@photonengr.com

 

Description

Converts RGB color components to tristimulus components.

 

Syntax

RGBToTriStimulus r, g, b, X, Y, Z

 

Parameters

r As Integer

The red component of the RGB color.

 

g As Integer

The green component of the RGB color.

 

b As Integer

The blue component of the RGB color.

 

X As Double

Returns the X tristimulus value.

 

Y As Double

Returns the Y tristimulus value.

 

Z As Double

Returns the Z tristimulus value.

 

Remarks

This subroutine converts RGB color components to tristimulus components. It does not set any errors.

 

See Also

WavelengthToRGB

WavelengthToTriStimulus

TriStimulusToRGB

Examples

 

 

 

 

 

 

Copyright © Photon Engineering, LLC