Commodore 128 Programmer's Reference Manual page 125

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
i i
COMMODORE 128 GRAPHICS PROGRAMMING
115
CHAR
^
Display characters at the specified position on the screen.
j |
CHAR [color source],X,Y[,string][,RVS]
This is primarily designed to display characters on a bit mapped screen, but it can also
P7
be used on a text screen. Here's what the parameters mean:
1 I
n
color source
X
Y
string
RVS
EXAMPLE:
0 = Background
1 = Foreground
Character column (0-79) (wraps around to the next line
in 40-column mode)
Character row (0-24)
String to print
Reverse field flag (O = off, 1 = on)
10 COLOR 2,3: REM multi-color 1 =Red
20 COLOR 3,7: REM multi-color 2 = Blue
30 GRAPHIC 3,1
40 CHAR 0,10,10, "TEXT",0
CIRCLE
Draw circles, ellipses, arcs, etc. at specified positions on the screen.
CIRCLE [color source],X,Y[,Xr][,Yr]
[,sa][,ea][,angle][,inc]
where:
color source
0 = background color
1 = foreground color
2 = multi-color 1
3 = multi-color 2
X, Y
Center coordinate of the CIRCLE
Xr
X radius (scaled)
Yr
Y radius (default is xr)
sa
Starting arc angle (default 0 degrees)
ea
Ending arc angle (default 360 degrees)
angle
Rotation in clockwise degrees (default is 0 degrees)
inc
Degrees between segments (default is 2 degrees)
EXAMPLES:
CIRCLE 1, 160,100,65,10
Draws an ellipse.
CIRCLE1, 160,100,65,50
Draws a circle.
CIRCLE 1, 60,40,20,18,,,,45
Draws an octagon.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents