• Returns the red component of the given pixel.

    Parameters

    • pixel: Pixel

      The given pixel

    Returns number

    The red component as a number between 0 and 255