gameforge - v0.1.12
    Preparing search index...

    Function rgb2hex

    • Function

      Converts a color as an [R, G, B] array of normalized floats to a hexadecimal number.

      Parameters

      • rgb: Float32Array<ArrayBufferLike> | number[]

        Array of numbers where all values are normalized floats from 0.0 to 1.0.

      Returns number

      Number in hexadecimal.

      since 7.2.0

      PIXI.Color.toNumber

      PIXI.utils rgb2hex