Class ColorScheme

ColorScheme

A color scheme defines a mapping from members of ThemeColorType to the actual colors used to render them.

Methods

MethodReturn typeBrief description
getConcreteColor(theme)ColorReturns the concrete Color associated with the ThemeColorType in this color scheme.
getThemeColors()ThemeColorType[]Returns a list of all possible theme color types in a color scheme.

Detailed documentation

getConcreteColor(theme)

Returns the concrete Color associated with the ThemeColorType in this color scheme.

The returned color is guaranteed to not be an instance of ThemeColor.

Parameters

NameTypeDescription
themeThemeColorType

Return

Color

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

getThemeColors()

Returns a list of all possible theme color types in a color scheme.

Return

ThemeColorType[]

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

发送以下问题的反馈:

此网页
Apps Script
Apps Script
需要帮助?请访问我们的支持页面