Color4

class cee.Color4()

An immutable four component (RGBA) color.

The color components (r,g,b,a) are in the range 0..1

Note that this class is immutable.

Constructors

Properties

Methods


Constructors

constructor

cee.Color4.constructor(r, g, b, a)

Creates a color object

Arguments
  • r (number) –

  • g (number) –

  • b (number) –

  • a (number) –

Return type

cee.Color4

Properties

cee.Color4.a

The alpha component of the color. Range: 0..1, where 1 is fully opaque and 0 is fully transparent (invisible)

cee.Color4.b

The blue component of the color. Range: 0..1

cee.Color4.g

The green component of the color. Range: 0..1

cee.Color4.r

The red component of the color. Range: 0..1

Methods

equals

cee.Color4.equals(other)

Returns true if the colors are equal

Arguments
Return type

boolean

from

cee.Color4.from(color)

Creates a Color4 instance from any object with r,g,b,a properties

Arguments
Return type

cee.Color4