Commodore 16 User Manual
Download Operation & user’s manual of Commodore 16 Desktop for Free or View it Online on All-Guides.com.
BOX
, 10, JO, 60, 60, 45, 1
BOX
,
30, 90,
.
45, 1
Draws
a
filled,
diamond)
rolaled
box (a
Draws a
tilled,
rotated polygon
CHAR
CHAR [colour
source fLx.y. string' [.reverse flag)
colour
source
A i * • * i
*
y
"slnng"
reverse.
Colour source
(0
-
3)
Character column
{0
-
39)
Character
row
(0
-
24)
, , i ,
Text
to be
printed
Reverse fiold flag
(0
=
off, 1
»
on)
Text (alphanumeric
strings) can
be
displayed on any
screen at a given
location
by
the CHAR
command. Character
data is read
from the
Commodore 1
6
character ROM area.
You
supply
the x and
y
coordinates of the starting
position and the text
string you want to
display. Colour
source
and
reverse
imaging are optional
The string is continued
on
the
next
line
If it
attempts
to print
past the
right
edge of me screen. When
used
In TEXT
mode, the string printed
by
the
CHAR
command works
just
like
a
PRINT string, including
reverse field, cursors, flash on/off,
efc. These control functions inside
Ihe string
do not work
when the CHAR command Is
used
to display
text
in GRAPHIC
mode.
CIRCLE
CIRCLE
|cs] ,[a.b). xr
[,
[yr]
[,
[sal.
|.
[ea)
[,
|
angle)
[,inc]
j J ]
CS . Colour
source (0
-
3)
a.b Centre coordinate (scaled)
(defaults
to the Pixel Cursor
|PC])
xr X radius (scaled)
y
Y radius
(detault is xr)
110
I
!
f
[
I
I
(
I
i
i
i
i
i
i
T
.
angle
•nc
Starting
arc angle (default
0)
Ending
arc
angle (detault
360)
.Rotation in clockwise
degrees
(default is degrees)
Degrees between segments
(default is
2
degrees)
With
the CIRCLE command
you can draw a circle,
ellipse,
arc,
triangle
or an
octagon
The final
coordinate Is on
the
circumference ot
the
circle
at
the ending arc angle.
Any
rotation
is about the centre. Arcs
are drawn
Irom
the starling angle clockwise
lo the
ending
angle The
segmeni Increment
controls the coarseness of the shape, with lower
values
for inc creating rounder shapes.
EXAMPLES
CIRCLE,
160,100.65,10
CIRCLE,
160.1Q0,6S,50
CIRCLE
,60,40,20,18,, ,.45
CIRCLE,
260,40,20,,, „90
CIRCLE
, 60,140,20,18,,,, 120
Draws an
ellipse.
Draws an oval.
Draws an octagon
Draws a diamond
Draws
a
triangle.
111