-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics_da1.cpp
58 lines (44 loc) · 1007 Bytes
/
graphics_da1.cpp
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
55
56
57
58
#include<graphics.h>
int main(){
int gd = DETECT, gm;
initgraph(&gd, &gm,NULL);
setcolor(YELLOW);
circle(100, 100, 30);
floodfill(100, 100, YELLOW);
rectangle(500, 150, 530, 300);
rectangle(535, 250, 590, 300);
line(0,300,640,300);
setcolor(4);
circle(100,285,15);
circle(200,285,15);
circle(100,285,5);
circle(200,285,5);
line(65,285,85,285);
line(115,285,185,285);
line(215,285,235,285);
line(65,285,65,260);
line(235,285,235,260);
line(65,260,100,255);
line(235,260,200,255);
line(100,255,115,235);
line(200,255,185,235);
line(115,235,185,235);
line(106,255,118,238);
line(118,238,118,255);
line(106,255,118,255);
line(194,255,182,238);
line(182,238,182,255);
line(194,255,182,255);
line(121,238,121,255);
line(121,238,148,238);
line(121,255,148,255);
line(148,255,148,238);
line(179,238,179,255);
line(179,238,152,238);
line(179,255,152,255);
line(152,255,152,238);
setcolor(4);
//floodfill(150,200,4);
getch();
closegraph();
}