Ball 

(Obsolete)

Description:              This statement draws a filled circle on the screen.

Returns:                    Nothing

Usage:                       Steady State

Format:                      Ball(X, Y, Radius, Foreground, Pattern, Background)

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

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

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

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

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

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

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

                                                Any numeric expression giving the foreground color of the ball using the reserved color values.

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

                                                Any numeric expression giving the hatch pattern to use to fill the ball. The valid hatch style numbers are from 1 to 25 inclusive. A Pattern of 1 is a solid ball (for other patterns, please refer to Fill Patterns).

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

                                                Any numeric expression giving the background color for the hatch pattern used to fill the ball. This value is only significant if the Pattern parameter is not equal to 1 (solid).

Comments:               This statement has been superseded by the GUIEllipse function and is maintained for backwards compatibility only.

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

Example:

Ball(20, 80 { Center },

     50 { Radius },

     11 { Cyan foreground },

     21 { Checkered pattern },

     0 { Black background });

This draws a cyan and black checkered ball in the upper left portion of the screen.

See Also:

Circle | Ellipse | GUIEllipse