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

NAME

6       arc - Draws a circular arc. Allegro game programming library.
7

SYNOPSIS

9       #include <allegro.h>
10
11
12       void arc(BITMAP *bmp, int x, y, fixed ang1, ang2, int r, int color);
13

DESCRIPTION

15       Draws a circular arc with centre x, y and radius r, in an anticlockwise
16       direction starting from the angle a1 and ending  when  it  reaches  a2.
17       These  values are specified in 16.16 fixed point format, with 256 equal
18       to a full circle, 64 a right angle, etc. Zero is to the  right  of  the
19       centre  point, and larger values rotate anticlockwise from there. Exam‐
20       ple:
21
22          /* Draw a black arc from 4 to 1 o'clock. */
23          arc(screen, SCREEN_W/2, SCREEN_H/2,
24              itofix(-21), itofix(43), 50, makecol(0, 0, 0));
25
26

SEE ALSO

28       circle(3), ellipse(3), drawing_mode(3), makecol(3)
29
30
31
32Allegro                          version 4.2.2                          arc(3)
Impressum