PIXI.utils.hex2string

hex2string(hex: number) → {string}

Converts a hexadecimal color number to a string.


 PIXI.utils.hex2string(0xffffff); // returns "#ffffff"
Parameters:
Name Type Description
hex number

Number in hex (e.g., 0xffffff)

Returns:
Type Description
string

The string color (e.g., "#ffffff").

Powered by webdoc!