Pie 

                        (Obsolete)

Description:              This statement draws a pie shaped wedge on the screen.

Returns:                    Nothing

Usage:                       Steady State

Format:                      Pie(X, Y, Radius, Angle1, Angle2, Foreground, Pattern, Background)

Parameters:             X    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the X coordinate of the center of the pie on the screen.

                                    Y    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the Y coordinate of the center of the pie on the screen.

                                    Radius    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the radius of the pie specified in units of X screen coordinates.

                                    Angle1    { numeric }  { required }  { no default: }

                                      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    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the ending angle of the pie in radians.

                                    Foreground    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the color index for the foreground color of the pie fill pattern.

                                    Pattern    { numeric }  { required }  { no default: }

                                      Any numeric expression giving the hatch pattern to use for the fill. The valid hatch style numbers are from 1 to 25 inclusive.

                                    Background    { numeric }  { required }  { no default: }

                                      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.

                             It is a non-destructive graphic statement that exclusive OR's with the existing background.

                             The pie is drawn in a counterclockwise direction from the Angle1 to Angle2. It is a non-destructive graphic statement that exclusive OR's with the existing background.

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.

See Also:

Arc | Ball | Circle | Ellipse | GUIArc | GUIChord | GUIEllipse | GUIPie