RGB (struct)

RGB RGB RGB

Members

Byte r  
Byte g  
Byte b  

Methods

  RGB ( in Byte r, in Byte g, in Byte b )
  RGB ( in Color c )
  RGB ( in Integer r, in Integer g, in Integer b )
  RGB ( in RGB other )
  RGB ( in RGBA r )
  RGB ()
RGB add ? ( in RGB other )
RGB clone ? ()
Boolean equal ? ( in RGB other )
UInt32 hash ? ()
RGB linearInterpolate ? ( in RGB other, in Scalar t )
RGB multiply ? ( in RGB other )
RGB multiplyScalar ? ( in Scalar other )
RGB subtract ? ( in RGB other )

Operators

RGB = ( Param other )

Methods in detail

RGB ( in Byte r, in Byte g, in Byte b )

Default constructor from component wise bytes


RGB ( in Color c )

Constructor from Color


RGB ( in Integer r, in Integer g, in Integer b )

Constructor from component wise integers


RGB ( in RGB other )

copy constructor


RGB ( in RGBA r )

Constructor from RGBA


RGB ()

default constructor


RGB RGB.add? ( in RGB other )

Overload method for the add operator


RGB RGB.clone? ()

clone method


Boolean RGB.equal? ( in RGB other )

Returns true if this RGB is the same as another one


UInt32 RGB.hash? ()

Hash for this value


RGB RGB.linearInterpolate? ( in RGB other, in Scalar t )

interpolates two RGB colors given a scalar blend value (0.0 to 1.0)


RGB RGB.multiply? ( in RGB other )

Overload method for the multiply operator


RGB RGB.multiplyScalar? ( in Scalar other )

Returns the product of this RGB color and a scalar


RGB RGB.subtract? ( in RGB other )

Overload method for the subtract operator

Operators in detail

RGB = ( Param other )

Adds another RGB color to this one