Class RgbColor

RgbColor

A color defined by red, green, blue color channels.

Methods

MethodReturn typeBrief description
asHexString()StringReturns the color as a CSS-style 7 character hexadecimal string, #rrggbb.
getBlue()IntegerThe blue channel of this color, as a number from 0 to 255.
getColorType()ColorTypeGet the type of this color.
getGreen()IntegerThe green channel of this color, as a number from 0 to 255.
getRed()IntegerThe red channel of this color, as a number from 0 to 255.

Detailed documentation

asHexString()

Returns the color as a CSS-style 7 character hexadecimal string, #rrggbb.

Return

String


getBlue()

The blue channel of this color, as a number from 0 to 255.

Return

Integer


getColorType()

Get the type of this color.

Return

ColorType


getGreen()

The green channel of this color, as a number from 0 to 255.

Return

Integer


getRed()

The red channel of this color, as a number from 0 to 255.

Return

Integer

发送以下问题的反馈:

此网页
Apps Script
Apps Script