• Translate RGBA notation to Uint32 color description, which can be used for per-data point coloring with LightningChart JS.

     // Example
    const colorUint32 = uint32ColorFromRGBA(255, 0, 0, 255)

    Values are in range [0, 255].

    Returns

    Number that represents a Uint32 rgba color

    Parameters

    • r: number

      Red channel [0, 255]

    • g: number

      Green channel [0, 255]

    • b: number

      Blue channel [0, 255]

    • a: number = 255

      Alpha channel [0, 255]

    Returns number