Color.toDecimalString

Syntax

toDecimalString(includeAlpha)

Parameters

includeAlpha. Indicates if the opacity value is displayed.

Description

The toDecimalString method returns the string that contains color value in RGB/RGBA format.

Comments

If this parameter is set to True, the string looks like rgba(0, 255, 0, 1).

If this parameter is set to False (default), the string looks like: rgb(0, 255, 0).

Example

The example of use is given in description of the Color.toString method.

See also:

Color