CIRCLE()

From Liberty BASIC Family
Jump to navigation Jump to search
Not supported in Just BASIC Not supported in Liberty BASIC Not supported in Liberty BASIC 5 Supported in Run BASIC

Description

A CIRCLE can be drawn in a graphic object. It is drawn in the current COLOR() and the current SIZE(). The center is at the current pen position. The size of the radius is fed to the CIRCLE command. The radius of a circle is the distance from the center to the circumference of the circle.

Syntax

  1. #handle CIRCLE(r) - Draw a circle of radius r at the current position

Hints

Place useful hints about this keyword here

Example

'create a graphic object
graphic #g, 300, 300
 
'place the drawing pen at 100,100
#g place(100,100)
 
'draw a circle with radius 75
#g circle(75)
 
'add graphic to web page
render #g

Useful Procedures

' Place a useful function or sub using this keyword here