由红色、绿色和蓝色通道定义的颜色。
方法
方法 | 返回类型 | 简介 |
---|---|---|
as | String | 以 CSS 风格的 7 位十六进制字符串 #rrggbb 的形式返回颜色。 |
get | Integer | 此颜色的蓝色通道,以介于 0 到 255 之间的数字表示。 |
get | Color | 获取此颜色的类型。 |
get | Integer | 此颜色的绿色通道,以介于 0 到 255 之间的数字表示。 |
get | Integer | 此颜色的红色通道,以介于 0 到 255 之间的数字表示。 |
详细文档
as Hex String()
以 CSS 风格的 7 位十六进制字符串 #rrggbb 的形式返回颜色。
返回
String
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Blue()
此颜色的蓝色通道,以介于 0 到 255 之间的数字表示。
返回
Integer
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Color Type()
get Green()
此颜色的绿色通道,以介于 0 到 255 之间的数字表示。
返回
Integer
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Red()
此颜色的红色通道,以介于 0 到 255 之间的数字表示。
返回
Integer
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations