fromBytes

fun fromBytes(red: Double? = definedExternally, green: Double? = definedExternally, blue: Double? = definedExternally, alpha: Double? = definedExternally, result: Color? = definedExternally): Color(source)

Creates a new Color specified using red, green, blue, and alpha values that are in the range of 0 to 255, converting them internally to a range of 0.0 to 1.0.

Return

The modified result parameter or a new Color instance if one was not provided.

Parameters

red

The red component. Default value - 255

green

The green component. Default value - 255

blue

The blue component. Default value - 255

alpha

The alpha component. Default value - 255

result

The object onto which to store the result.

See also