screen_fill_rect

Function screen_fill_rect 

Source
pub unsafe extern "C" fn screen_fill_rect(
    x0: i16,
    y0: i16,
    x1: i16,
    y1: i16,
) -> u32
Expand description

Fill a rectangular region of the screen using the current pen color

This function uses the following values of errno when an error state is reached: EACCESS - Another resource is currently trying to access the screen mutex.

\param x0, y0 The (x,y) coordinates of the first point of the rectangle \param x1, y1 The (x,y) coordinates of the second point of the rectangle

\return 1 if there were no errors, or PROS_ERR if an error occured taking or returning the screen mutex.