------------------------------------------------------------------------------
20. Draw a pie figure. <Main>
------------------------------------------------------------------------------
[Name]
mmc_pie_b
[Syntax]
#include <fgraph.h>
short mmc_pie_b( short control, short xc, short yc, short xr,
short yr, short d1, short d2 ) ;
[Arguments]
control Control flag.
xc, yc View port coordinate of the circle center.
xr X-directional radius.
yr Y-directional radius.
d1 Angle of drawing start point (-3600..3600 [0.1 deg])
d2 Angle of drawing end point (-3600..3600 [0.1 deg])
[Return]
Returns non-0 value if successful, or 0 if any error.
[Description]
Draws a pie figure.
Specify one of the following symbols for "Control flag".
Symbol Purpose
---------------+----------------------------------------------
_GFILLINTERIOR Fills inside of the object with the current
fill mask pattern.
_GBORDER Draws only border line, not fills inside.
"Angles" are specified as follows.
Unit of angles is 0.1 degree.
"Start angle" <= "End angle".
Allowed range to command is -3600..3600 (-360[deg]..360[deg]).
The origin of angle is + direction of X axis.
Angle increases counter clock wise.
(Y) (Y)
│ │
│ │
90[deg]│<-----+ -270[deg]│<-----+
│ │ │ │
│ │0[deg] │ │-360[deg]
----------------+----------------(X) ----------------+----------------(X)
180[deg]│ │ 360[deg] -180[deg]│ │ 0[deg]
│ │ │ │
+----->│270[deg] +----->│-90[deg]
│ │
│ │
Pie figure is drawn counter clock wise (CCW) from the start point to
the end point. When the start point is same as the end point, pie
figure is not drawn but only a line which connects the circle center
and start/end point is drawn.