Class RgbColor

RgbColor

由红色、绿色和蓝色通道定义的颜色。

方法

方法返回类型简介
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()

获取此颜色的类型。

返回

ColorType

授权

使用此方法的脚本需要获得以下一个或多个范围的授权:

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

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