pub unsafe extern "C" fn screen_set_eraser(color: u32) -> u32Expand description
Set the eraser color for erasing and the current background.
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 color The background color to set (it is recommended to use values from the enum defined in colors.h)
\return Returns 1 if the mutex was successfully returned, or PROS_ERR if there was an error either taking or returning the screen mutex.
\b Example \code void initialize() { screen_set_eraser(COLOR_RED); }
void opcontrol() { while(1){ // This should turn the screen red. screen_erase(); } } \endcode