instance. Color

The instance.Color function contains convenience methods and members for Rac.Color objects setup with the owning Rac instance.

Source:

Members

black

A black Color.

red

A red Color.

Methods

fromRgba(r, g, b, aopt) → {Rac.Color}

Returns a new Color with each channel received in the [0,255] range.

Parameters:
Name Type Attributes Default Description
r number

The red channel value, in the [0,255] range

g number

The green channel value, in the [0,255] range

b number

The blue channel value, in the [0,255] range

a number <optional>
255

The alpha channel value, in the [0,255] range