Skip to content

color_to_hex

Vašek edited this page Feb 10, 2019 · 2 revisions

color_to_hex

Returns color in hex format

Syntax:

color_to_hex(col)
Argument Description
Color col The given color

Returns: string

Description:

This function returns col in hex format. For example Color.Blue with 255 alpha is "#0000ffff" in hex format.

Example:

string col = color_to_hex(Color.Red);

This function will set col to "#ff0000ff".

Back to Color And Alpha

Clone this wiki locally