• 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.

    since 7.2.0

    PIXI.Color.toNumber

    PIXI.utils

    rgb2hex