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

NAME

6       do_ellipse - Calculates all the points in an ellipse. Allegro game pro‐
7       gramming library.
8

SYNOPSIS

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

DESCRIPTION

17       Calculates all the points in an ellipse around point (x, y) with radius
18       rx and ry, calling the supplied function for each  one.  This  will  be
19       passed a copy of the bmp parameter, the x and y position, and a copy of
20       the d 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_ellipse(screen, SCREEN_W/2, SCREEN_H/2,
28                       SCREEN_H/16, SCREEN_H/32, flame_color,
29                       draw_explosion_ring);
30
31

SEE ALSO

33       do_circle(3), do_arc(3), do_line(3), ellipse(3), ellipsefill(3)
34
35
36
37Allegro                          version 4.4.2                   do_ellipse(3)
Impressum