Thursday, 5 October 2017

Draw Orange Circle inside Blue Triangle using OPENGL in C/C++ ?

Draw Orange Circle inside Blue Triangle using OPENGL in C/C++ ?

IGNOU MCA 2017 Assignment Question / Answer



#include<graphics.h>
#include<conio.h>

main()
{
   int gd = DETECT, gm;
   initgraph(&gd,&gm,"C:\\TC\\BGI");

  setcolor(BLUE);

   line(300, 100, 200, 200);
   line(300, 100, 400, 200);
   line(200, 200, 400, 200);

   setcolor(ORANGE);
   circle(300,150,30);          /* drawn in orange color   */

   getch();
   closegraph();
   return 0;
}


FOR MORE INFORMATION

Visit Our Office : 
120-121, Gangotri Complex,
30 Meter Gotri Road,
Near Yash Complex,
Gotri, Vadodara - 390021
Gujarat, India.
Contact No: +91 9726185104

No comments:

Post a Comment