fromRgba

fun fromRgba(rgba: Double, result: Color? = definedExternally): Color(source)

Creates a new Color from a single numeric unsigned 32-bit RGBA value, using the endianness of the system.

const color = Color.fromRgba(0x67ADDFFF);

Return

The color object.

Parameters

rgba

A single numeric unsigned 32-bit RGBA value.

result

The object to store the result in, if undefined a new instance will be created.

See also