home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
canada-remote-systems
/
c128
/
graphutl
/
basicd40.seq
< prev
next >
Wrap
Text File
|
2019-04-13
|
5KB
|
74 lines
The Commodore 128 with it's enhanced BASIC has many useful commands and the
graphic statements like CIRCLE, BOX and PAINT can be used to generate simple
shapes. However, using these to any great extent without the aid of a drawing
program can be quite a task. Let's say you wanted to make a little character
for a title screen or game screen. You could draw the picture in an 'art'
program, load the picture file into your program and then 'SSHAPE' it for
use on graphic screens. You could also take on the tedious task of try to
figure out what lines, boxes, angles and coordinates to use to make up your
picture. But say you could simply draw the picture and the program did all
the work of remembering which numbers, colors or whatever made up your
masterpiece. You'd simply add the resulting code into your program and have
your picture right there with no disk loads. That's what BASIC DRAW does for
you, make your work alot simpler. The program uses multi-color (GRAPHIC 3)
mode to allow you to make some colorful little pictures. You simply plot a
few points and connect them, paint in colors and your done.
Oops, what if you just colored your frog blue! The Oops option can come to
the rescue. The commands the program uses are as follows:
(RETURN) - Toggle menu on/off
(1)-(3) - Choose colors for sources 1-3
(4) - Choose which color source to draw with
(5) - Choose what you will do next, make a line, box, circle or
paint in an area you've already drawn.
(S) - Toggle 4 options, SELECTION, END, RESET, OOPS
Let's discuss the (S) options first. You'll note when you enter the menu
that SELECTION is highlighted. If it is not then one of the other options
is chosen. If you do not want to use any of the other three options, you
must toggle back to highlight SELECTION before exiting the menu.
END - Selection this option and pressing return will end the program
and erase what's in the 128 memory, all except for what you
have drawn. You simply type RUN and you'll see your work of
art draw right before your eyes. You can then type GRAPHIC0
and save this file to add to your program or as a picture
you can RUN.
RESET - This option will do the opposite of END. It erases everything
in memory that you've drawn and restore the program to it's
condition as if just loaded. You may then proceed to make a
new picture without any previous work getting in the way.
OOPS - Oops will erase the last thing you've done if it has not
been added to memory yet. If a statement was added to memory
that caused a problem, you may edit the listing after
executing the END option.
Options for setting color and pen are pretty much self-explanatory, however
you press 1 and you'll see that color change. Keep hitting 1 until you
see the color you want to use. The same applies to 2 and 3. 4 is the
'pen' you will use, color 1,2, or 3.
Option 5 chooses which type of mode you will be in. When the menu is on for
all options, drawing mode is inactive. Just press (RETURN) to go back to
drawing mode. When making a line, move the pointer to point 1 and tap the
fire button on joystick two. DO NOT HOLD DOWN THE BUTTON, a slight tap will
do. Now move to the end of the line and tap the fire button once again.
You'll see a line in the color you chose drawn on the screen. To make a
square, move to where you want the top left corner, tap the button, then move
to where you want the bottom right corner and tap again. For circles, you
move to where the center of the circle will be, tap the button, then move
up or down for the outer edge of the circle. (Note: moving left or right will
result in just a dot being drawn). To paint an area, make sure the middle
pixel (the hole in the pointer) is in an enclosed area and tap the button.
Normally the border is DARK GREY. When the program is acting on an option like
RESET or adding a line to memory, the border will turn BLUE and a beep will
be heard. At this time the program is inactive. Simply wait for the border
to return to DARK GREY and you may continue as usual.
* END OF TEXT *