Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>circle draw ellipse on screen</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CIRCLE                   Draw Ellipse on Screen

 CIRCLE [STEP] (x,y), radius [,[color] [,[start],[end][,aspect]]]

    Draws an ellipse on the screen.

        STEP    If included, coordinates are relative to last graphics
                point referenced (LPR). If omitted, coordinates are
                absolute.

         x,y    The center (column, row) of the ellipse in pixels.

      radius    Length, in pixels, of the major axis (the radius, in the
                case of a circle).

       color    Color in which the ellipse is drawn. Defaults to 3 in
                medium resolution, 1 in high resolution.

       start    Starting angle of arc, in radians. Defaults to 0.

         end    Ending angle of arc, in radians. Defaults to 2..

      aspect    Ratio, in pixels, of the x radius to the y radius.
                Defaults to 5/6 in medium resolution, 5/12 in high
                resolution; these values generate a circle on the CGA.

   --------------------------------------------------------------------------

      Notes:    Omitting start and end  results in a complete circle.

                If negative values for start and end are given, the end
                points of the resulting arc are connected to the center
                point, thus creating pie-chart wedges.

                After a CIRCLE statement has been executed, the "last
                point referenced" (LPR) is the center of the ellipse.

See Also: LINE

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson