RGB (struct)¶
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 ) |
Methods in detail¶
RGB ( in Byte r, in Byte g, in Byte b )
Default constructor from component wise bytes
Constructor from Color
RGB ( in Integer r, in Integer g, in Integer b )
Constructor from component wise integers
copy constructor
Constructor from RGBA
RGB ()
default constructor
Overload method for the add operator
clone method
Boolean RGB.equal? ( in RGB other )
Returns true if this RGB is the same as another one
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