• Converts a hexadecimal color number to a string.

    Parameters

    • hex: number

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

    Returns string

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

    PIXI.Color.toHex

    since 7.2.0

    PIXI.utils

    hex2string