rgb

fun rgb(hex: Int): Color(source)

Creates a Color.RGB instance from a hex value.


fun rgb(r: Int, g: Int, b: Int): Color(source)

Creates a Color.RGB instance from individual R, G, and B components.