home *** CD-ROM | disk | FTP | other *** search
-
- /************************************************************************/
- /* 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);
- }