EasyManua.ls Logo

Commodore Plus 4 - Page 145

Commodore Plus 4
234 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...
-
EXAMPLE:
DOUNTILX
=
OORX=1
~
~
"
LOOP
DO
WHILE
A$="":GET
A$:LOOP
DRAW
DRAW
color
source
#[,
a
7,
b
1
[TOa2,
b2...]\
With
this
command
you
can
draw
individual
dots,
lines,
and
shapes.
You
supply
color
source
(0-3),
starting
(a1,
b1)and
ending
points
(a2. b2).
EXAMPLES:
END
~
a
dot:
lines:
a
shape:
DRAWL
100,
50—no
endpoint
specified,
defaults
to
a1,b1
value
for
a2,b2
to
create
a
dot
DRAW,
10,10
TO
DRAW,
TO
25,30
100,60
DRAW,
10.10TO
10,60
TO
100,60
TO
10,10
END
When
the
program
executes
an
END
statement,
the
program
stops
RUNning
immediately.
You
may
use
the
CONT
command
to
re-start
the
program
at
the
statement
following
the
END
statement.
FOR...
TO...
STEP
FOR
variable
=
start
value
TO
end
value
[STEP
increment
|
This
statement
works
with
the
NEXT
statement
to
set
up
a
section
of
the
program
that
repeats
for
a
set
number
of
times.
You
may
just
want
the
Plus/4
to
count
up
to
a
large
number
so
the
program
pauses
for
a
few
136

Other manuals for Commodore Plus 4

Related product manuals