Creating Arrows line using Computer Graphics.

In Code we Build Arrow using lines Coordinates in Computer Graphics with the of graphics library in Cpp.

By Following Code Certain Output is Generated given below the Code.

Code

#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void get_driver()
{
 clrscr();
 int gDriver=DETECT,gMode;
 initgraph(&gDriver,&gMode,"C:\\TC\\BGI");
}
void main()
{
get_driver();
setcolor(YELLOW);
moveto(125,100);
lineto(500,200);
delay(700);
lineto(20,30);
delay(700);
lineto(20,30);
delay(700);
lineto(200,400);
delay(700);
lineto(100,125);
delay(700);
lineto(400,400);
delay(700);
lineto(500,350);
delay(700);
lineto(125,100);
getch();
closegraph();
}

OUTPUT

Arrow in Computer Graphics
Arrow in Computer Graphics
(Visited 2,818 times, 1 visits today)
Share with Friends :
Written by:

3 thoughts on “Arrow in Computer Graphics

  • 03/08/2018 at 6:21 am
    Permalink

    Great article. Good to understand for everyone.

    Reply
  • 20/08/2018 at 3:11 am
    Permalink

    Thanks for the excellent guide

    Reply
  • 22/08/2018 at 9:21 pm
    Permalink

    Thanks, it’s very informative

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *