Srgb

fun Srgb(r: Int, g: Int, b: Int)

Create a color from 8-bit integer sRGB components.


fun Srgb(color: Int)

Create a color from a packed (A)RGB8 integer.


fun Srgb(color: String)

Create a color from a hex color code (e.g. #FA00FA). Hex codes with and without leading hash (#) symbols are supported.


fun Srgb(r: Double, g: Double, b: Double)