EasyManua.ls Logo

Commodore 128D - Page 332

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...
RCLR
ROOT
—Return
color
of
color
source
RCLR(N)
This
function
returns
the
color
(1
through
16)
assigned
to
the
color
source
N
(0<
=
N
<
6),
where
the
following
N
values
apply:
0
=
40-column
background
1
=
bit
map
foreground
2
=
multicolor
1
3
=
multicolor
2
4
=
40-column
border
5
=
40-
or
80-column
character
color
6
=
80-column
background
color
The
counterpart
to
the
RCLR
function
is
the
COLOR
command.
See
RSPRITE
and
RSPCOLOR
for
current
sprite
colors.
EXAMPLE:
10
FOR
I
=
0
TO
6
20
PRINT
"SOURCE";I;"IS
COLOR";RCLR(I)
30
NEXT
This
example
prints
the
colors
for
all
seven
color
sources.
—Return
current
position
or
color
source
of
pixel
cursor
RDOT(N)
where:
N
=
0
returns
the
X
coordinate
of
the
pixel
cursor
N
=
1
returns
the
Y
coordinate
of
the
pixel
cursor
N
=
2
returns
the
color
source
of
the
pixel
cursor
This
function
returns
the
location
of
the
current
position
of
the
pixel
cursor
(PC)
or
the
current
color
source
of
the
pixel
cursor.
Note
that
RDOTdoes
not
return
scaled
coordinates.
EXAMPLES:
PRINT
RDOT(0)
PRINT
RDOT(1)
PRINT
RDOT(2)
Returns
X
position
of
PC
Returns
Y
position
of
PC
Returns
color
source
of
PC
RGR
—Return
current
graphic
mode
RGR(X)
This
function
returns
the
current
graphic
mode.
X
is
a
dummy
argu
ment,
which
must
be
specified.
The
counterpart
of
the
RGR
function
324
BASIC
7.0
ENCYCLOPEDIA—Basic
Functions

Table of Contents

Other manuals for Commodore 128D

Related product manuals