home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
MUCH
/
MSG01.MSA
/
ARTICLES_COOKER.DOC
< prev
next >
Wrap
Text File
|
1993-07-23
|
4KB
|
125 lines
COLOUR COOKER - Raster creator
--------------------------------
This utility was written with STOS Basic. There are two versions of it,
the GEM-runnable version, and the ACB version to be run from STOS as an
accessory. Although it was written in STOS, Colour Cooker outputs a
binary file which can be used by anybody in any language (therefore the
PRG version).
What's the point?
-----------------
If you are a demo coder who codes demos regularly, you may find that
programming the data for the rasters (of whatever) to be rather
monotonous. This utility creates a list of colours for you to use
easily and quickly. If you are not a demo coder, you may just like to
look at the pretty colours!
General specifications
----------------------
9 different methods/types of colour creation.
Maximum of 30000 colours.
5 different colour view modes.
Main menu
---------
Here, you have 7 options:
VIEW CURRENT COLOURS - Flicks to the VIEW COLOURS sub-menu where you
can see what the created colours are like.
CLEAR COLOURS - Clears the memory ready for the next set of colour
data.
SAVE CURRENT COLOURS - Saves the data in memory as a binary file.
(see "Format of Output file" later on)
RANDOMIZE NEW DATA - You select the method of creation, and the
computer creates the new data.
OPTIONS - You can set various parameters here.
HELP! - Displays the various types of colour creation.
QUIT - Exits the program, either back to STOS, or the Desktop.
View colours
------------
There are six options here.
TEXT LIST - Prints out the hexadecimal values of the colour data.
FLASH/GLOW - Glows the screen with the colour. Press Space to glow a
bar, and then to glow some text.
STATIC RASTER - You select the height of each raster bar (1-16). The
program then displays the first few colours (depending
upon raster size) as a static raster.
FLOWING RASTER - You again select the raster height. Every colour now
flows up the screen, and loops when it reaches the
end.
STROBE - This displays two strobes with the colours flowing along them.
QUIT - Returns to the main menu.
Options
-------
NUMBER OF COLOURS? (5 - 30000) If mirror colours is on, the program
generates 7 less colours (see next)
MIRROR COLOURS? (Y/N) If this is off, you get an ugly overlap of the
first and last colours in the rasters. This option fades the last
colour back to the first colour within the last 7 colour datas.
INITIAL VALUES? (0-7) You set the starting RGB values of the colours.
ALLOW FOR PAUSES? (Y/N) If on, this allows for random 'pauses' in the
colour data. Maybe looks OK, maybe not (probably not, but never mind)
LENGTH OF PAUSE? (1->) Sets the maximum pause length (if pause is on)
TRACE METHOD? (O/A/V/R) When the program has to trace between two
colours (eg red to blue.) It can do it by using three methods. One,
All, or Variable.
ONE only traces one colour at a time. (eg. red [7-0], THEN blue [0-7])
ALL traces all colours at the same time (eg. red [7-0] AND blue [0-7])
VARIABLE traces either or all of the necessary colours
(eg. red-1, red-1, blue+1, red-1, blue+1, blue+1, blue+1...etc)
R means RANDOM and chooses one of the above three.
Format of Output file
---------------------
The length of each data file is twice the maximum number of colours, so
if you wanted 500 colours, the file would be 1000 bytes long.
From the very start of the file, each colour exists as a word:
OFFSET FROM START LENGTH DATA
0 2 $000
2 2 $110
4 2 $220
6 2 $330
8 2 $440
. . .
. . .
. . .
Credits
-------
All code, ideas, etc... BLACK EAGLE
Music... MAD MAX
Additional code... TOP NOTCH SOFTWARE
End
---
I hope that you find this program useful, and that it saves you a lot
of typing $...$...$...$...$...$...$...$...$...$...$...$...$...$...$...$
....$...$.......!
Make no errors...
BLACK EAGLE
-----------