Convert between equivalent 32-bit representations

rgba_vec_to_hex_colour(rgba_vec)

hex_colour_to_rgba_vec(hex_colour)

int32_to_hex_colour(int32)

hex_colour_to_int32(hex_colour)

rgba_vec_to_int32(rgba_vec)

int32_to_rgba_vec(int32)

Arguments

rgba_vec

4-element RGBA colour with values in range [0, 255]

hex_colour

string "#0a44f5', "#33ff12ff"

int32

32 bit integer

Value

Hex colour with Alpha