Class RgbColor

Rgb顏色

由紅、綠、藍色版定義的顏色。

方法

方法傳回類型簡短說明
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