由紅色、綠色、藍色色版所定義的顏色。
方法
方法 | 傳回類型 | 簡短說明 |
---|---|---|
asHexString() | String | 以 CSS 樣式 7 字元十六進位字串 #rrggbb 傳回顏色。 |
getBlue() | Integer | 這個顏色的藍色頻道,以 0 到 255 的數字表示。 |
getColorType() | ColorType | 取得這個顏色的類型。 |
getGreen() | Integer | 此顏色的綠色頻道,以 0 到 255 的數字表示。 |
getRed() | Integer | 這個顏色的紅色色號,以 0 到 255 的數字表示。 |
內容詳盡的說明文件
asHexString()
以 CSS 樣式 7 字元十六進位字串 #rrggbb 傳回顏色。
回攻員
String
授權
使用這個方法的指令碼必須取得以下一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getBlue()
這個顏色的藍色頻道,以 0 到 255 的數字表示。
回攻員
Integer
授權
使用這個方法的指令碼必須取得以下一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColorType()
getGreen()
此顏色的綠色頻道,以 0 到 255 的數字表示。
回攻員
Integer
授權
使用這個方法的指令碼必須取得以下一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getRed()
這個顏色的紅色色號,以 0 到 255 的數字表示。
回攻員
Integer
授權
使用這個方法的指令碼必須取得以下一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations