gameforge - v0.1.12
    Preparing search index...

    Function string2hex

    • Function

      Converts a string to a hexadecimal color number.

      Parameters

      • string: string

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

      Returns number

      Number in hexadecimal.

      since 7.2.0

      PIXI.Color.toNumber

      PIXI.utils string2hex