fromHex

Create a color from RGB values.

pure
fromHex
(
int rgb
)

Parameters

rgb int

hex value, red << 16 | green << 8 | blue

Return Value

Type: Color

The associated Color, or Color.invalid if a bad value for rgb was supplied.

Meta