pub unsafe extern "C" fn screen_set_pen(color: u32) -> u32Expand description
Set the pen color for subsequent graphics operations
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 pen 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_pen(COLOR_RED); }
void opcontrol() { int iter = 0; while(1){ // This should print in red. screen_print(TEXT_MEDIUM, 1, ā%dā, iter++); } } \endcode