Function getColorInt32Component

  • Returns an 8-bit component from a 32-bit color integer.

    getColorIntComponent(0x12_34_56_78, 2);
    // ⮕ 0x56

    Parameters

    • color: number
    • offset: number

    Returns number