Commodore 128 Programmer's Reference Manual page 90

Hide thumbs Also See for 128:
Table of Contents

Advertisement

80
COMMODORE 128
SOURCE
0
1
2
3
4
5
6
DESCRIPTION
40-column background
bit map foreground
multi-color 1
multi-color 2
40-column border
40- or 80-column character color
80-column background color
u
0
The counterpart to the RCLR function is the COLOR command.
J
EXAMPLE:
10 FOR I = 0 TO 6
20 PRINT "SOURCE";I;"IS COLOR CODE";RCLR(I)
30 NEXT
This example prints the color codes for all six color sources.
RDOT
I j
Return current position or color source of pixel cursor
RDOT (N)
r j
I I
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 (0-3) of the pixel cursor
LmJ
This function returns the location of the current position of the pixel cursor or the
| f
current color source of the pixel cursor.
JJ
EXAMPLES:
PRINT RDOT(0)
Returns X position of pixel cursor
PRINT RDOT(l)
Returns Y position of pixel cursor
PRINT RDOT(2)
Returns color source of pixel cursor
RGR
Return current graphic mode
\ j
RGR(X)
^
This function returns the current graphic mode. X is a dummy argument, which must be
specified. The counterpart of the RGR function is the GRAPHIC command. The value
I
returned by RGR(X) pertains to the following modes:
^

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents