logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

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

Description

       Draws a circular arc with centre x, y and radius r, in an anticlockwise direction starting from the angle
       a1  and ending when it reaches a2. These values are specified in 16.16 fixed point format, with 256 equal
       to a full circle, 64 a right angle, etc. Zero is to the right of the  centre  point,  and  larger  values
       rotate anticlockwise from there. Example:

          /* Draw a black arc from 4 to 1 o'clock. */
          arc(screen, SCREEN_W/2, SCREEN_H/2,
              itofix(-21), itofix(43), 50, makecol(0, 0, 0));

Name

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

See Also

circle(3alleg4), ellipse(3alleg4), drawing_mode(3alleg4), makecol(3alleg4)

Allegro                                           version 4.4.3                                     arc(3alleg4)

Synopsis

#include<allegro.h>voidarc(BITMAP*bmp,intx,y,fixedang1,ang2,intr,intcolor);

See Also