Class Color

Color

An opaque color

Methods

MethodReturn typeBrief description
asRgbColor()RgbColorConverts this color to an RgbColor.
asThemeColor()ThemeColorConverts this color to a ThemeColor.
getColorType()ColorTypeGet the type of this color.

Detailed documentation

asRgbColor()

Converts this color to an RgbColor.

Return

RgbColor

Throws

Error — if the color is not an RgbColor


asThemeColor()

Converts this color to a ThemeColor.

Return

ThemeColor

Throws

Error — if the color is not a ThemeColor


getColorType()

Get the type of this color.

Return

ColorType

Send feedback about...

Apps Script
Apps Script
Need help? Visit our support page.