rgb

fun rgb(r: Int, g: Int, b: Int): String

Creates an rgb color string.

The rgb color format specifies a color using red, green, and blue components. Useful when setting fill/stroke attributes or inline styles.

Return

The rgb color string.

Parameters

r

The red component (0-255).

g

The green component (0-255).

b

The blue component (0-255).