Graphics
Programming
in
BASIC
217
Table
4-6.
Resulting
Color
Source
Using
a
Parameter
Value
of
3
Color
Source
Used
on
Screen
Color
Source
Used
in
Shape
0
1
2
3
0
0
0
0
0
/
0
1
0
1
2
0
0
2
2
3
0
1
2
3
Table
4-7.
Resulting
Color
Source
Using
a
Parameter
Value
of
4
Color
Source
Used
on
Screen
Color
Source
Used
in
Shape
0
1
2
3
0
0
1
2
3
1
1
0
3
2
2
2
3
0
1
3
3
2
1
0
The
example
program
places
a
shape
drawn
with
color
source
2
on
a
back
ground
screen
drawn
with
color
source
1.
Both
the
shape
and
the
background
screen
also
use
background
color
(source
0).
Using
a
parameter
value
of
2,
the
background
"shows
through"
the
shape
wherever
it
uses
color
source
0.
Where
it
uses
color
source
2,
the
resulting
color
source
is
2
(where
the
background
color
source
is
0)
or
3
(where
the
background
color
source
is
1).
To
keep
the colors the
same,
color
sources
2
and
3
must
be
set
to
the
same
color.
Multicolor
Graphics
Animation
Example
Program
10
GRAPHIC3,1
20
COLOR2,5,5:COLOR3,5,5
30
DRAW2,50,50TO50,73
40
CIRCLE2,46,45f2:PAINT2,46,45
50
DRAW2,46,50TO46,55TO50,53
60
DRAW2f46,55TO46,58TO50f70
70
SSHAPEA$(0),44,41,50,73
80
DRAW2,70,50TO70,75
90
CIRCLE2,68,40,2:PAINT2,68,40
100
DRAW2,68,44TO68,49TO70,53
110
DRAW2,68,49TO68,52TO70,70
120
SSHAPEA$(1),66,36,70,75
130
SCNCLR
140
DRAW1,0,95TO159,95
150
DRAW1,0,115TO159,115