EasyManua.ls Logo

Commodore 128D - Page 255

Commodore 128D
427 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
f \
!
\
(
\
CIRCLE
Text
(alphanumeric
strings)
can
be
displayed
on
the
screen
at
a
given
location
by
the
CHAR
statement.
Character
data
is
read
from
the
Commodore
128
character
ROM.
The
user
supplies
the
x
and
y
coor
dinates
of
the
starting
position
and
the
text
string
to
be
displayed.
Color
source
and
reverse
imaging
are
optional.
In
40-column
format
the
string
is
continued
on
the
next
line
if
it
attempts
to
print
past
the
(40th
column)
right
edge
of
the
screen.
When
used
in
TEXT
mode,
the
string
printed
by
the
CHAR
command
works
just
like
a
PRINT
command,
including
cursor
and
color
control.
These
control
functions
inside
the
string
do
not
work
when
the
CHAR
command
is
used
to
display
text
in
bit
map
mode.
Upper/lower
case
controls
(CHR$
(14)
or
CHR$
(142))
also
operate
in
bit
map
mode.
Multicolor
characters
are
handled
differently
than standard
charac
ters.
First
select
multicolori
and
multicolor
2
with
the
COLOR
com
mand.
Set
the
GRAPHIC
mode
to
multicolor.
To
display
the
fore
ground
on
multicolor
1,
set
the
color
source
in
the
CHAR
command
to
zero
and
the
reverse
flag
to
zero.
To
display
the
foreground
on
multicolor
2,
set
the
color
source
to
0
and
the
reverse
flag
to
1.
The
following
example
displays
the
foreground
character
color
using
a
red
background.
Change
the
reverse
flag to
1
and
the
characters
are
displayed
in
multicolor
2
(blue).
10
COLOR
2,3:
REM
MULTICOLOR
1
=
RED
20
COLOR
3,7:
REM
MULTICOLOR
2=
BLUE
30
GRAPHIC
3,1
40
CHAR
0,10,10,"TEXT",0
—Draw
circles,
ellipses,
arcs,
etc.
at
specified
positions
on
the
screen
CIRCLE
[color
source],[X,Y],Xrad[,[yrad][,[sa]
rJeairJanqleiUncTrm
where:
color
source
0
=
background
color
1
=
foreground
color
2
=
multicolor
1
3
=
multicolor
2
x,y
Center
coordinate
of
the
CIRCLE
(default
is
the
PC
location)
247
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals