rgba

fun rgba(r: Int, g: Int, b: Int, a: Float): String

Creates an rgba color string.

The rgba color format specifies a color using red, green, blue components, and an alpha (opacity) value. Useful for fill/stroke or style values.

Return

The rgba color string.

Parameters

r

The red component (0-255).

g

The green component (0-255).

b

The blue component (0-255).

a

The alpha component (0.0-1.0).