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