1do_circle(3)                    Allegro manual                    do_circle(3)
2
3
4

NAME

6       do_circle  -  Calculates  all the points in a circle. Allegro game pro‐
7       gramming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void do_circle(BITMAP *bmp, int x, int  y,  int  radius,  int  d,  void
14       (*proc)(BITMAP *bmp, int x, int y, int d));
15

DESCRIPTION

17       Calculates  all  the points in a circle around point (x, y) with radius
18       r, calling the supplied function for each one. This will  be  passed  a
19       copy  of  the  bmp parameter, the x and y position, and a copy of the d
20       parameter, so it is suitable for use with putpixel(). Example:
21
22          void draw_explosion_ring(BITMAP *bmp, int x, int y, int d)
23          {
24             ...
25          }
26
27             do_circle(screen, SCREEN_W/2, SCREEN_H/2,
28                       SCREEN_H/16, flame_color,
29                       draw_explosion_ring);
30
31

SEE ALSO

33       do_ellipse(3), do_arc(3), do_line(3), circle(3), circlefill(3)
34
35
36
37Allegro                          version 4.2.2                    do_circle(3)
Impressum