gameforge - v0.1.12
    Preparing search index...

    Function hex2rgb

    • Function

      Converts a hexadecimal color number to an [R, G, B] array of normalized floats (numbers from 0.0 to 1.0).

      Parameters

      • hex: number

        The hexadecimal number to convert

      • Optionalout: Float32Array<ArrayBufferLike> | number[]

        If supplied, this array will be used rather than returning a new one

      Returns Float32Array<ArrayBufferLike> | number[]

      An array representing the [R, G, B] of the color where all values are floats.

      PIXI.utils hex2rgb

      PIXI.Color.toRgbArray

      since 7.2.0