•
CHR$
CHR$
is
a function which
will
return
the character whose value
is
specified
as
a parameter BASIC
CHR$
is
the inverse of CODE.
CIRCLE
will
draw a
CIrcle
(or an ellipse
at
a specified angle) on the screen
at
a specified
position and
size.
The circle
will
be drawn
In
the Window attached
to
the specified or
default channel.
CIRCLE uses the graphics coordinate system and can use absolute coordinates
(i.e.
relative
to
the graphics origin). and relative coordinates
(i.e.
relative
to
the
graphics cursor).
For
relative coordinates use CIRCLE_R.
Multiple circles or ellipses can be plotted with a single call
to
CIRCLE. Each set
of
parameters must be separated from each other with a semi colon
(;)
The word ELLIPSE can be substituted for CIRCLE
If
required.
•
•
syntax:
example:
syntax:
CHR$ (numeric_expression)
i.
PRINT CHR$(271 [print
ASCII
escape characterj
ii.
PRINT CHR$(6S) [print Al
FOR SERVICE MANUALS
CONTACT:
MAURITRON
TECHNICAL
SERVICES
wWW.mauritron.cO.uk
TEL:
01844
-
351694
FAX:
01844-352554
x:
= numeric_expression
y:
= numeric_expression
radius:
= numeric_expression
eccentriclly:
=numeric_expression
angle:
= numeric_expression [range 0 .2
1t
]
parameters: = I
x.
y,
1
I radius, eccentricity. angle 2
where 1
Will
draw a circle
2
will
draw an ellipse of specified eccentricity and angle
CIRCLE [channel,J parameters *[; parameters] *
x horizontal offset from
the
graphics origin or graphics cursor
y verticat offset from the graphics origin or graphics cursor
radius radius of the circle
CIRCLE
CIRCLE_R
graphics
eccentricity
angle
the ratio between the major and minor axes of
an
ellipse.
the orientation of the major axis of the
ellipse relative
to
the screen
vertical.
The angle must be specified
in
radians.
example:
12/84
i.
CIRCLE
SO,SO,20
ii.
CIRCLE
50,50,20,0.5,0
[a circle at 50,50 radius
201
[an ellipse
at
50,50 major axis 20
eccentricity
0.5
and aligned with the
verticaJ
axisl
7