1al_draw_arc(3) al_draw_arc(3)
2
3
4
6 al_draw_arc - Allegro 5 API
7
9 #include <allegro5/allegro_primitives.h>
10
11 void al_draw_arc(float cx, float cy, float r, float start_theta,
12 float delta_theta, ALLEGRO_COLOR color, float thickness)
13
15 Draws an arc.
16
17 Parameters:
18
19 · cx, cy - Center of the arc
20
21 · r - Radius of the arc
22
23 · color - Color of the arc
24
25 · start_theta - The initial angle from which the arc is calculated in
26 radians
27
28 · delta_theta - Angular span of the arc in radians (pass a negative
29 number to switch direction)
30
31 · thickness - Thickness of the arc, pass <= 0 to draw hairline arc
32
34 al_calculate_arc(3), al_draw_elliptical_arc(3)
35
36
37
38Allegro reference manual al_draw_arc(3)