-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrupee.c
More file actions
31 lines (24 loc) · 659 Bytes
/
Copy pathrupee.c
File metadata and controls
31 lines (24 loc) · 659 Bytes
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
#include <graphics.h>
int main() {
int gdriver = DETECT, gmode;
// Initialize the graphics mode and local variables
initgraph(&gdriver, &gmode, NULL);
setbkcolor(WHITE);
for (int i=0; i<454; i++) {
setcolor(BLACK);
line(0+i, 125, 186+i, 125);
line(93+i, 125, 93+i, 175);
arc(43+i, 175, 0, 95, 50);
line(0+i, 225, 38+i, 225);
line(0+i, 225, 118+i, 375);
line(0+i, 160, 186+i, 160);
// Hold the program for 20 seconds
delay(20);
// Clear the screen
cleardevice();
}
getch();
// Close the graphics mode
closegraph();
return 0;
}