AI-generated Key Takeaways
-
RgbColor defines a color using red, green, and blue channels.
-
You can get the red, green, or blue channel value of an RgbColor as an integer between 0 and 255.
-
An RgbColor can be returned as a CSS-style hexadecimal string using
asHexString()
. -
The type of the color can be retrieved using
getColorType()
.
A color defined by red, green, blue color channels.
Methods
Method | Return type | Brief description |
---|---|---|
as | String | Returns the color as a CSS-style 7 character hexadecimal string, #rrggbb. |
get | Integer | The blue channel of this color, as a number from 0 to 255. |
get | Color | Get the type of this color. |
get | Integer | The green channel of this color, as a number from 0 to 255. |
get | Integer | The 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
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getBlue()
The blue channel of this color, as a number from 0 to 255.
Return
Integer
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColorType()
getGreen()
The green channel of this color, as a number from 0 to 255.
Return
Integer
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getRed()
The red channel of this color, as a number from 0 to 255.
Return
Integer
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations