赤、緑、青のカラー チャネルで定義される色。
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()
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