• Retrieves the red component of a given Point.

    Parameters

    • pt: Point

    Returns number

    Red component of the Point

    Example

    const point = make_color_point(1, 2, 3, 50, 100, 150);
    r_of(point); // Returns 50