Color specifies a red, green, blue, alpha (RGBA) color, each with a Float number from 0.0 to 1.0. The alpha value indicates the transparency, where 0.0 is fully transparent and 1.0 is fully opaque.
Class Properties (see Type)
- New
- (r,g,b,a)-> color. If only r is specified, it is used as a gray scale value for rgb. When a is not specified, 1.0 is assumed.
- _newtype
- -> mixin. The type used by Color instances.
Instance Properties
- set
- (r,g,b,a)-> color. If only r is specified, it is used as a gray scale value for rgb. When a is not specified, 1.0 is assumed.
- unpack
- Return the r,g,b, and a values as separate Floats