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

    Parameters

    • rgb: number[] | Float32Array

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

    Returns number

    Number in hexadecimal.

    Deprecated

    since 7.2.0

    See

    PIXI.Color.toNumber

    Memberof

    PIXI.utils

    Function

    rgb2hex

Generated using TypeDoc