SilverScreen Solid Modeler

SS_RGB method

SS_RGB method

Previous topic Next topic  

SS_RGB method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SS_RGB(int r, int g, int b)

 

int r; // Integer value between 0 and 255

int g; // Integer value between 0 and 255

int b; // Integer value between 0 and 255

 

 




Synopsis

#include "silver.h"

 

The SS_RGB constructor initializes a SilverSharp.SS_RGB object

 

 

Parameters

r is a value indicating the red contribution of the color.

g is a value indicating the green contribution of the color

b is a value indicating the blue contribution of the color

 

 

Return Value

SS_RGB returns a SilverSharp.SS_RGB object initialized to the specified color

 

 

Remarks

The values for r, g, and b are between 0 and 255. 0 indicates no contribution of the component, whereas 255 indicates full contribution of the component.

 

 

See Also

SS_RGB, EdgeList

 

 

Example

The following code shows how to construct SilverSharp.SS_RGB objects:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 SS_RGB red = new SS_RGB(255, 0, 0);

 SS_RGB green = new SS_RGB(0, 255, 0);

 SS_RGB blue = new SS_RGB(0, 0, 255);

 SS_RGB white = new SS_RGB(255, 255, 255);