ColorScheme

A color scheme defines a mapping from members of `https://developers.google.com/apps-script/reference/slides/theme-color-type` to the actual colors used
to render them.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/color-scheme#getConcreteColor(ThemeColorType)` | `https://developers.google.com/apps-script/reference/slides/color` | Returns the concrete `https://developers.google.com/apps-script/reference/slides/color` associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color scheme. |
| `https://developers.google.com/apps-script/reference/slides/color-scheme#getThemeColors()` | `https://developers.google.com/apps-script/reference/slides/theme-color-type` | Returns a list of all possible theme color types in a color scheme. |
| `https://developers.google.com/apps-script/reference/slides/color-scheme#setConcreteColor(ThemeColorType,Color)` | `https://developers.google.com/apps-script/reference/slides/color-scheme#` | Sets the concrete color associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color scheme to the given color. |
| `https://developers.google.com/apps-script/reference/slides/color-scheme#setConcreteColor(ThemeColorType,Integer,Integer,Integer)` | `https://developers.google.com/apps-script/reference/slides/color-scheme#` | Sets the concrete color associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color scheme to the given color in RGB format. |
| `https://developers.google.com/apps-script/reference/slides/color-scheme#setConcreteColor(ThemeColorType,String)` | `https://developers.google.com/apps-script/reference/slides/color-scheme#` | Sets the concrete color associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color scheme to the given color in HEX format. |

## Detailed documentation

### `getConcreteColor(theme)`

Returns the concrete `https://developers.google.com/apps-script/reference/slides/color` associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color
scheme.

The returned color is guaranteed to not be an instance of `https://developers.google.com/apps-script/reference/slides/theme-color`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `theme` | `https://developers.google.com/apps-script/reference/slides/theme-color-type` | The theme color to derive the concrete color from. |

#### Return


`https://developers.google.com/apps-script/reference/slides/color` --- The concrete color corresponding the theme color type in this scheme.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_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


`https://developers.google.com/apps-script/reference/slides/theme-color-type` --- The possible theme color types in this scheme.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `setConcreteColor(type, color)`

Sets the concrete color associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color scheme to the
given color.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `type` | `https://developers.google.com/apps-script/reference/slides/theme-color-type` | The theme color type. |
| `color` | `https://developers.google.com/apps-script/reference/slides/color` | The color to set the theme color type to. |

#### Return


`https://developers.google.com/apps-script/reference/slides/color-scheme#` --- This color scheme, for chaining.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `setConcreteColor(type, red, green, blue)`

Sets the concrete color associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color scheme to the
given color in RGB format.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `type` | `https://developers.google.com/apps-script/reference/slides/theme-color-type` | The theme color type. |
| `red` | `Integer` | The red value of the color to set the theme color type to (between 0 and 255). |
| `green` | `Integer` | The green value of the color to set the theme color type to (between 0 and 255). |
| `blue` | `Integer` | The blue value of the color to set the theme color type to (between 0 and 255). |

#### Return


`https://developers.google.com/apps-script/reference/slides/color-scheme#` --- This color scheme, for chaining.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `setConcreteColor(type, hexColor)`

Sets the concrete color associated with the `https://developers.google.com/apps-script/reference/slides/theme-color-type` in this color scheme to the
given color in HEX format.

The hex string must be in the format '#RRGGBB'.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `type` | `https://developers.google.com/apps-script/reference/slides/theme-color-type` | The theme color type. |
| `hexColor` | `String` | The hex color to set the theme color type to, such as '#F304a7'. |

#### Return


`https://developers.google.com/apps-script/reference/slides/color-scheme#` --- This color scheme, for chaining.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`