Class: Pixel

Guacamole.Layer.Pixel(rnon-null, gnon-null, bnon-null, anon-null)

new Pixel(rnon-null, gnon-null, bnon-null, anon-null)

Represents a single pixel of image data. All components have a minimum value of 0 and a maximum value of 255.
Parameters:
Name Type Description
r number The red component of this pixel.
g number The green component of this pixel.
b number The blue component of this pixel.
a number The alpha component of this pixel.
Source:

Members

(non-null) alpha :number

The alpha component of this pixel, where 0 is the minimum value, and 255 is the maximum.
Type:
  • number
Source:

(non-null) blue :number

The blue component of this pixel, where 0 is the minimum value, and 255 is the maximum.
Type:
  • number
Source:

(non-null) green :number

The green component of this pixel, where 0 is the minimum value, and 255 is the maximum.
Type:
  • number
Source:

(non-null) red :number

The red component of this pixel, where 0 is the minimum value, and 255 is the maximum.
Type:
  • number
Source: