Home > Working with SGWorld > Creator (ICreator6) > CreateColor

CreateColor

CreateColor creates a custom color by defining the red, green, blue and alpha values.

 

JavaScript

 

CreateColor(

      Red ,

      Green ,

      Blue ,

      Alpha )

 

C#

 

IColor6 CreateColor(

      int   Red = 255,

      int   Green = 255,

      int   Blue = 255,

      int   Alpha = 255)

 

C++

 

HRESULT CreateColor(

        long          Red,

        long          Green,

        long          Blue,

        long          Alpha,

        IColor6 **    pVal )

Parameters:

Red

The red component of the RGB color.

Green

The green component of the RGB color.

Blue

The blue component of the RGB color.

Alpha

The alpha component.

Return Value

pVal

An IColor6 representing the color created.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.