Class Color
Detaillierte Dokumentation
asRgbColor()
Konvertiert diese Farbe in einen RgbColor
.
Rückflug
RgbColor
Löst aus
Error
– wenn die Farbe keine RgbColor
ist
Autorisierung
Scripts, die diese Methode verwenden, erfordern eine Autorisierung für einen oder mehrere der folgenden Bereiche:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
asThemeColor()
Konvertiert diese Farbe in eine ThemeColor
.
Rückflug
ThemeColor
Löst aus
Error
– wenn die Farbe keine ThemeColor
ist
Autorisierung
Scripts, die diese Methode verwenden, erfordern eine Autorisierung für einen oder mehrere der folgenden Bereiche:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColorType()
Den Typ dieser Farbe abrufen.
Rückflug
ColorType
: Der Farbtyp.
Autorisierung
Scripts, die diese Methode verwenden, erfordern eine Autorisierung für einen oder mehrere der folgenden Bereiche:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-02 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]