CIRCLE

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
CIRCLE x, y, r [,lw] [, a] [,c] [, fill]

Description:
Draw a circle on the video output centred at 'x' and 'y' with a radius of 'r' on the VGA monitor. 
‘lw’ is optional and is the line width (defaults to 1). 
'c' is the optional colour and defaults to the current foreground colour if not specified. 
The optional 'a' is a floating point number which will define the aspect ratio. If the aspect is not specified the default is 1.0 which gives a standard circle on a typical display.
Some display resolution smay need some changes to maintain the 'square' aspect ratio
'fill' is the fill colour. It can be omitted or set to -1 in which case the circle will not be filled. 
All parameters can be expressed as arrays and the software will plot the number of circles as determined by the dimensions of the smallest array. 
'x', 'y' and 'r' must all be arrays or all be single variables /constants otherwise an error will be generated. 
'lw', 'a', 'c', and fill can be either arrays or single variables/constants. 
See the chapter "Basic Drawing Commands" in the CMM2 manual for a definition of the colours and graphics coordinates.

CLS
circle 100,100,50,5,,RGB(GREEN),RGB(RED)

Last edited: 29 September, 2020