Class Color

不透明な色

メソッド

メソッド戻り値の型概要
asRgbColor()RgbColorこの色を RgbColor に変換します。
asThemeColor()ThemeColorこの色を ThemeColor に変換します。
getColorType()ColorTypeこの色のタイプを取得します。

詳細なドキュメント

asRgbColor()

この色を RgbColor に変換します。

戻る

RgbColor - RgbColor としての色。

例外

Error - 色が RgbColor でない場合

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

asThemeColor()

この色を ThemeColor に変換します。

戻る

ThemeColor - ThemeColor としての色。

例外

Error - 色が ThemeColor でない場合

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getColorType()

この色のタイプを取得します。

戻る

ColorType - 色のタイプ。

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations