SGColor Class

This class represents a color in the Skyline Globe environment.

It is used as a parameter for many methods and can determine the opacity or transparency of the object.

Constructor

Name

Description

Constructor

Initializes a new instance of SGColor.

Properties

Name

Description

abgrColor Property

Number which represents the color in ABGR format (0xAABBGGRR).

Methods

Name

Description

toHTMLColor Method

Returns a string in HTML color format (“#RRGGBB”).

toBGRColor Method

Returns a number in BGR color format (0x00BBGGRR).

toInnerObjColor Method

Returns a number in innerObj color format (0x00BBGGRR).

toABGRColor Method

Returns a number in ABGR color format (0xAABBGGRR).

toRGBColor Method

Returns a number in RGB color format (0x00RRGGBB).

toARGBColor Method

Returns a number in ARGB color format (0xAARRGGBB).

fromHTMLColor Method

Sets the SGColor object from HTML color format (“#RRGGBB”).

fromBGRColor Method

Sets the SGColor object from BGR color format (0x00BBGGRR).

fromABGRColor Method

Sets the SGColor object from ABGR color format (0xAABBGGRR).

fromRGBColor Method

Sets the SGColor object from RGB color format (0x00RRGGBB).

fromARGBColor Method

Sets the SGColor object from ARGB color format (0xAARRGGBB).

getAlpha Method

Returns the opacity or transparency of the SGColor object.

setAlpha Method Method

Sets the opacity or transparency of the SGColor object.