Monday, March 25, 2013

QBASIC, Draw a circle

Noun
A round plane figure whose boundary (the circumference) consists of points equidistant from a fixed center.
Verb
Move all the way around (someone or something), esp. more than once: "the two dogs circle each other"; "we circled around the island".
Synonyms
noun.      ring - round - cycle - sphere
verb.      revolve - surround - encircle - wheel - compass
 
NAME
  CIRCLE Statement

SYNOPSIS
  CIRCLE [STEP] (x!,y!),radius![,[color%] [,[start!] [,[end!] [,aspect!]]]]
      o STEP       Specifies that coordinates are relative to the current
                   graphics cursor position.
      o (x!,y!)    The coordinates for the center of the circle or ellipse.
      o radius!    The radius of the circle or ellipse in the units of the
                   current coordinate system, determined by the most recent
                   SCREEN, VIEW, and WINDOW statements.
      o color%     A color attribute that sets the circle's color. The
                   available color attributes depend on your graphics adapter
                   and the screen mode set by the most recent SCREEN statement.
      o start!     The starting angle for the arc, in radians.
      o end!       The ending angle for the arc, in radians.
      o aspect!    The ratio of the length of the y axis to the length of the
                   x axis, used to draw ellipses.
      o To convert from degrees to radians, multiply degrees by (PI / 180).

DESCRIPTION
  Draws a circle or ellipse on the screen.

  Example:
      'This example requires a color graphics adapter.
      SCREEN 2
      CIRCLE (320, 100), 200
      CIRCLE STEP (0,0), 100

0 comments:

Post a Comment