Class RgbColor

RgbColor

赤、緑、青のカラー チャネルで定義される色。

Methods

メソッド戻り値の型概要
asHexString()String色を CSS スタイルの 7 文字の 16 進数文字列 #rrggbb として返します。
getBlue()Integerこの色の青色チャネル(0 ~ 255 の数値)。
getColorType()ColorTypeこの色のタイプを取得します。
getGreen()Integerこの色の緑のチャネル(0 ~ 255 の数値)。
getRed()Integerこの色の赤チャネル(0 ~ 255 の数値)。

詳細なドキュメント

asHexString()

色を CSS スタイルの 7 文字の 16 進数文字列 #rrggbb として返します。

リターン

String

承認

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

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

getBlue()

この色の青色チャネル(0 ~ 255 の数値)。

リターン

Integer

承認

この方法を使用するスクリプトには、次の 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

getGreen()

この色の緑のチャネル(0 ~ 255 の数値)。

リターン

Integer

承認

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

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

getRed()

この色の赤チャネル(0 ~ 255 の数値)。

リターン

Integer

承認

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

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