home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC089.C
< prev
next >
Wrap
Text File
|
1988-04-10
|
1KB
|
30 lines
/************************************************************************/
/* A set of concentric circles and four sets of symmetric arcs */
/************************************************************************/
arc_demo()
{
#define WHITE 15
int r;
cls();
for (r = 100; r > 70; r -= 5) /* Draw 6 circles */
arc(320,100,320+r,100,0,360,WHITE);
for (r = 70; r > 0; r -= 5) /* Loop over size */
{ /* Draw next four arcs */
arc(320,100,320+r,100, 22, 66,WHITE);
arc(320,100,320+r,100,112,156,WHITE);
arc(320,100,320+r,100,202,246,WHITE);
arc(320,100,320+r,100,292,336,WHITE);
}
}
arc(xc,yc,xp,yp,a0,a1,color)
int xc,yc; /* Center of the arc */
int xp,yp; /* Any point on full circle */
int a0,a1; /* Starting and ending angle in degrees */
int color; /* Color of the arc */
{
brute_arc(xc,yc,xp,yp,a0,a1,color);
}