#include "fill.h" #include "mygraph.h" #include "Xroutines.h" void print_screen(environment * env) { int x,y; unsigned long k; Get_Image_From_Server(env); for (y=0;yymax;y++) { for (x=0;xxmax;x++){ k = Get_Pixel(env,x,y); printf("%2i",k); } printf("\n"); } printf("\n"); } void paint_screen(environment * env, int color) { int x,y; int hold_color; hold_color = Set_Color(env, color); for (y=0;yymax;y++) { for (x=0;xxmax;x++){ SetPixel(env,x,y); } } Set_Color(env,hold_color); }