Ultra-Simple Tutorials

EasyX is very simple to use.

For example, start Visual C++, create an empty console project (Win32 Console Application), and then add a new code file (.cpp) and reference the easyx.h header file.

Take a look at an example of drawing a circle:

#include <easyx.h>			// Reference graphics library header file
#include <conio.h>
int main()
	initgraph(640, 480);	// Create a graphics window with a size of 640x480 pixels
	circle(200, 200, 100);	// Draw a circle with center (200, 200) and radius 100
	_getch();				// Press any key to continue
	closegraph();			// Close the graphics window

Of course, EasyX can also be used on Win32 Application projects. It is important to note that the Win32 Application project does not have a console, so you cannot use console related functions.