AA_DEMO.c



/* Programa DEMO del uso de << graphics.h >>

PAGINA MANUAL PARA LA INSTALACION DE <<< graphics.h >>>
	https://askubuntu.com/questions/525051/how-do-i-use-graphics-h-in-ubuntu

PAGINA MANUAL DE REFERENCIA:
	https://www.programmingsimplified.com/c/graphics.h

COMPILAR CON:
	gcc PROGRAMA.c -o PROGRAMA -lgraph
*/

#include<graphics.h> 
int main()
{
   int gd = DETECT,gm,left=100,top=100,right=200,bottom=200,x= 300,y=150,radius=50;
   initgraph(&gd,&gm,NULL);
   rectangle(left, top, right, bottom);
   setcolor(14);
   circle(x, y, radius);
   bar(left + 300, top, right + 300, bottom);
   setcolor(9);
   line(left - 10, top + 150, left + 410, top + 150);
   ellipse(x, y + 200, 0, 360, 100, 50);
   setcolor(6);
   outtextxy(left + 100, top + 325, "C Graphics Program");

   delay(5000);
   closegraph();
   return 0;
}