SilverScreen Solid Modeler

Parse method

Parse method

Previous topic Next topic  

Parse method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

static SS_RGB Parse(string text);

 

string text;   // A System.String object

 

 

 




Synopsis

using SilverSharp;

 

The Parse function converts the specified string representation of a color to the SilverSharp.SS_RGB equivalent.

 

 

Parameters

text is a string representation of a color appropriate for SilverScreen commands.

 

 

Return Value

Parse returns a SilverSharp.SS_RGB object

 

 

See Also

SS_RGB, ToString

 

 

Example

The following code creates SilverSharp.SS_RGB objects from string representations:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 SS_RGB clr1 = SS_RGB.Parse("yellow");

 SS_RGB clr2 = SS_RGB.Parse("r10g20b80");

 SS_RGB clr3 = SS_RGB.Parse("black");