summaryrefslogtreecommitdiff
path: root/html/en/func/filled.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/en/func/filled.html')
-rw-r--r--html/en/func/filled.html24
1 files changed, 14 insertions, 10 deletions
diff --git a/html/en/func/filled.html b/html/en/func/filled.html
index 2ae1083..97a2e84 100644
--- a/html/en/func/filled.html
+++ b/html/en/func/filled.html
@@ -63,25 +63,29 @@ canvas:fSector(xc, yc, w, h, angle1, angle2: number) [in Lua]
canvas:wSector(xc, yc, w, h, angle1, angle2: number) (WC) [in Lua]</pre>
<p>Fills the arc of an ellipse aligned with the axis, according to the current
- interior style, in the shape of a pie. It is drawn counter-clockwise. The
+ interior style, in the shape of a pie. </p>
+<p>The
coordinate <b>(xc,yc)</b> defines the center of the ellipse.
Dimensions <b>w</b> and <b>h</b> define the elliptic axes X
and Y, respectively. </p>
- <p>Angles <b>angle1</b> and <b>angle2</b>, in degrees,
- define the arc's beginning and end, but they are not the angle relative to the
+ <p>Angles <b>angle1</b> and <b>angle2</b> are in degrees and oriented
+ counter-clockwise. They
+ define the arc start and end, but they are not the angle relative to the
center, except when w==h and the ellipse is reduced to a circle. The arc
- starts at the point <b>(xc+(w/2)*cos(angle1),yc+(h/2)*sin(angle1))</b>
- and ends at <b>(xc+(w/2)*cos(angle2),yc+(h/2)*sin(angle2))</b>. A
- complete ellipse can be drawn using 0 and 360 as the angles. </p>
+ starts at the point <b>(xc+(w/2)*cos(angle1), yc+(h/2)*sin(angle1))</b>
+ and ends at <b>(xc+(w/2)*cos(angle2), yc+(h/2)*sin(angle2))</b>. A
+ complete ellipse can be drawn using 0 and 360 as the angles.&nbsp; If <b>angle2</b>
+ is less than <b>angle1</b> it will be increased by 360 until it is greater
+ than <b>angle1</b>. </p>
<p>The angles are specified so if the size of the ellipse (w x h) is changed,
its shape is preserved. So the angles relative to the center are dependent
- from the ellipse size. The actual angle can be obtained using <tt><b>rangle =
- atan2((h/2</b></tt><b>)*sin(angle),(w/2)*cos(angle))</b>.</p>
- <p>The angles are given in degrees. To specify the angle in radians, you can
+ from the ellipse size. The actual angle can be obtained using <b>rangle =
+ atan2((h/2)*sin(angle), (w/2)*cos(angle))</b>.</p>
+ <p>To specify the angle in radians, you can
use the definition <font size="2"><strong>CD_RAD2DEG</strong></font>
to multiply the value in radians before passing the angle to CD. </p>
<p>When the interior style <font><strong>CD_HOLLOW</strong></font> is defined,
- the function behaves like its equivalent <strong><font>cdArc</font></strong>,
+ the function behaves like its equivalent <strong><font>cdCanvasArc</font></strong>,
plus two lines connecting to the center.</p>
<p align="center"><font size="4">Sector Parameters</font><br>
<img src="../../img/sector.gif" border="2" width="161" height="160"></p>