AI-generated Key Takeaways
-
The Color class represents an opaque color.
-
The
asRgbColor()method converts the color to an RgbColor. -
The
asThemeColor()method converts the color to a ThemeColor. -
The
getColorType()method gets the type of the color.
An opaque color
Methods
| Method | Return type | Brief description |
|---|---|---|
Rgb
|
Converts this color to an Rgb
. |
|
Theme
|
Converts this color to a Theme
. |
|
Color
|
Get the type of this color. |
Detailed documentation
as
Rgb
Color()
Converts this color to an Rgb
.
Return
Throws
Error
— if the color is not an Rgb
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
as
Theme
Color()
Converts this color to a Theme
.
Return
Throws
Error
— if the color is not a Theme
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
get
Color
Type()
Get the type of this color.
Return
Color
— The color type.
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

