SilverScreen Solid Modeler

RGB        

RGB        

Previous topic Next topic  

RGB        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

RGB

 


A 32-bit data type to store the Red, Green, and Blue components of a color value

 

typedef unsigned __int32 RGB;

 

 

Remarks

The macros associated with this type are:

 

Macro

Meaning

RED_COLOR

The Red component of an RGB value

GREEN_COLOR

The Green component of an RGB value

BLUE_COLOR

The Blue compoenent of an RGB value

THE_COLOR

The closest color index from the earlier 8-bit palette system

MAKE_RGB

Combines a color index, red component, green component, and blue component into an RGB value.

 

The macro THE_COLOR is provided for legacy support and may be deprecated. SilverScreen converts any color index commands it receives into RGB values internally, therefore if you are providing the RGB components there is no need to calculate a valid index and zero is acceptable.

 

The values for each component are unsigned bytes and therefore fall in the rangle of [0-255].

 

 

Header

ssdef.h