Class Color
Documentación detallada
asRgbColor()
Convierte este color en un RgbColor
.
Volver
RgbColor
Arroja
Error
: Si el color no es un RgbColor
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
asThemeColor()
Convierte este color en un ThemeColor
.
Volver
ThemeColor
Arroja
Error
: Si el color no es un ThemeColor
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColorType()
Obtén el tipo de este color.
Volver
ColorType
: Es el tipo de color.
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-12-02 (UTC)
[null,null,["Última actualización: 2024-12-02 (UTC)"],[[["This documentation describes how to work with opaque colors in Google Apps Script's Slides service."],["`Color` objects can be converted to RGB or Theme colors using the `asRgbColor()` and `asThemeColor()` methods."],["`getColorType()` allows you to retrieve the specific type of a given color."],["Using any of these methods requires authorization with the `presentations.currentonly` or `presentations` scopes."]]],["The provided content describes an opaque color object with three methods. `asRgbColor()` converts the color to an RgbColor, returning an `RgbColor`. `asThemeColor()` converts the color to a ThemeColor, returning a `ThemeColor`. `getColorType()` identifies the color's type, returning a `ColorType`. All methods require specific authorization scopes, including `https://www.googleapis.com/auth/presentations.currentonly` and `https://www.googleapis.com/auth/presentations`. Errors are thrown if the color type is not compatible with the requested conversion.\n"]]