• 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

    • Optional out: number[] | Float32Array

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

    Returns number[] | Float32Array

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

    Memberof

    PIXI.utils

    Function

    hex2rgb

    See

    PIXI.Color.toRgbArray

    Deprecated

    since 7.2.0

Generated using TypeDoc