fromRgba

fun fromRgba(r: Int, g: Int, b: Int, a: Int = 255): Color

Constructs a Color from component red, green, blue, and alpha values. The constructed color will be in sRGB format in ARGB order.

Since

200.0.0

Parameters

r

the red value, 0..255

g

the green value, 0..255

b

the blue value, 0..255

a

the alpha value, 0..255. Defaults to fully opaque (255)