Color

32-bit Color with alpha channel.

Modulerequire("gui")
TypeInteger

Color is represented by a 32-bit ARGB integer.

For APIs that accept Color, you can pass a hex string representing the color, like "#A123", "#123", "#AA112233", "#112233".

label.setColor('#F000')

Class methods

rgb(r, g, b)

Create an opaque RGB color.

Parameters

Return

Color

argb(a, r, g, b)

Create an ARGB color.

Parameters

Return

Color