RGBA.kl

Types

RGBA (struct)

The RGBA type represents a 8 bit 4 channel color value, storing the components ordered as red, green, blue and alpha as Byte values.

参考

Color, ARGB

/*
** Example: RGBA
*/

RGBA red(255, 0, 0, 255);

Members

Byte r  
Byte g  
Byte b  
Byte a  

Methods

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

Operators

RGBA = ( Param other )

Functions

Math_min

RGBA Math_min ( in RGBA val1, in RGBA val2 )

Returns the minimum of two RGBA values

Math_max

RGBA Math_max ( in RGBA val1, in RGBA val2 )

Returns the minimum of two RGBA values

Math_clamp

Vec3_i Math_clamp ( in Vec3_i val, in Scalar minval, in Scalar maxval )

Clamps a Vec3_i value by min and max

mathRandomRGBA

RGBA mathRandomRGBA ( in Size seed, in Size index, in Float32 min, in Float32 max )