GrAPiC
Graphics for Algo/Prog in C/C++

◆ winClear()

void grapic::winClear ( )
inline

Clear the window with the default background color.

bool stop=false;
winInit("Tutorials", 500, 500);
rectangle(100,100, 200, 200);
bool winDisplay()
Display the window. All drawing is hidden until this function is not called.
Definition: Grapic.h:300
void winClear()
Clear the window with the default background color.
Definition: Grapic.h:262
void winQuit()
Quit and close all things.
Definition: Grapic.h:307
void pressSpace(bool isPrint=true)
Stop the program until key 'space'is pressed.
void rectangle(int xmin, int ymin, int xmax, int ymax)
Draw a rectangle from (xmin,ymin) to (xmax,ymax)
void winInit(const char *name, int w, int h, int posx=-1, int posy=-1)
Initialize the window with a size w,h and a position (posx,posy). If posx<0 or posy<0,...
Definition: Grapic.h:245