Pie
Deprecated. Do not use in new code.
(Engine-Level Function)
Description | Draws a pie shaped wedge on the screen. |
Returns | Nothing |
Usage | Steady State only. |
Function Groups | Graphics |
Related to: | Arc | Ball | Circle | Ellipse | GUIArc | GUIChord | GUIEllipse | GUIPie |
Format: | Pie(X, Y, Radius, Angle1, Angle2, Foreground, Pattern, Background) |
Parameters |
X |
Required. Any numeric expression giving the X coordinate of the center of the pie on the screen. |
Y |
Required. Any numeric expression giving the Y coordinate of the center of the pie on the screen. |
Radius |
Required. Any numeric expression giving the radius of the pie specified in units of X screen coordinates. |
Angle1 |
Required. Any numeric expression giving the starting angle of the pie in radians. An angle of 0 lies on the X axis to the right of the center of the pie. |
Angle2 |
Required. Any numeric expression giving the ending angle of the pie in radians. |
Foreground |
Required. Any numeric expression giving the color index for the foreground color of the pie fill pattern. |
Pattern |
Required. Any numeric expression giving the hatch Fill Patterns to use for the fill. The valid hatch style numbers are from 1 to 25 inclusive. |
Background |
Required. Any numeric expression giving the background color for the hatch pattern. This value is only significant if the Pattern parameter is not equal to 1. |
Comments |
This statement has been superseded by the GUIPie function and is maintained for backwards compatibility only. As of version 11, this is now drawn in the same z-order as other graphics, making it similar to the z-graphics functions. |
Example:
Pie(100,200 { X-Y coordinates for the center of the pie }, 200 { Radius in pixels }, 0 { Start angle (3 o'clock position) }, 3.14 { Draw counterclockwise for 180 degrees }, 10, 1, 0 { Light green solid (background ignored });
This draws the top half of a light green circle.