forked from shikaruki/Hactoberfest2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Graphics
54 lines (45 loc) · 1.01 KB
/
Graphics
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include<iostream>
#include<graphics.h>
#include<dos.h>
using namespace std;
main()
{
int gd=0,gm,n;
initgraph(&gd,&gm, " ");
setbkcolor(GREEN);
line(250,400,500,400);
setcolor(13);
arc(250,350,90,270,50);
setcolor(15);
line(250,300,500,300);
setcolor(11);
arc(500,350,270,450,50);
//putpixel(400,330,14);
setcolor(10);
line(345,400,380,330);
line(380,330,420,400);
setcolor(0);
line(345,400,420,400);
setcolor(3);
line(250,300,100,200);
line(230,302,100,200);
line(203,370,100,200);
line(200,350,100,200);
setcolor(4);
line(509,299,370,200);
line(499,300,370,200);
line(450,300,370,200);
line(440,300,370,200);
setcolor(7);
line(100,200,100,300);
line(370,200,370,280);
setcolor(5);
for(int i=0;i<=150;i++)
{
for(int j=0;j<=i;j++)
{outtextxy(0+(i+j),10+(j),"chasma");};
}
delay(10);
getch();
closegraph();
}