Class RgbColor

RgbColor

A color defined by red, green, blue color channels.

Methods

MethodReturn typeBrief description
asHexString()StringReturns the color as a CSS-style 7 character hexadecimal string, #rrggbb.
getBlue()IntegerThe blue channel of this color, as a number from 0 to 255.
getColorType()ColorTypeGet the type of this color.
getGreen()IntegerThe green channel of this color, as a number from 0 to 255.
getRed()IntegerThe red channel of this color, as a number from 0 to 255.

Detailed documentation

asHexString()

Returns the color as a CSS-style 7 character hexadecimal string, #rrggbb.

Return

String

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

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

getBlue()

The blue channel of this color, as a number from 0 to 255.

Return

Integer

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

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

getColorType()

Get the type of this color.

Return

ColorType

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

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

getGreen()

The green channel of this color, as a number from 0 to 255.

Return

Integer

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

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

getRed()

The red channel of this color, as a number from 0 to 255.

Return

Integer

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

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

Enviar comentarios sobre…

¿Necesitas ayuda? Visita nuestra página de asistencia.