home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
tools
/
rainbo
/
rainbow.doc
< prev
next >
Wrap
Text File
|
1994-03-29
|
9KB
|
212 lines
╔════════════════════════╗
║ R A I N B O W ║
║ V 1.5 ║
║ ║
║ Copyright (c) 1994 ║
║ Mercé Software ║
║ All rights reserved ║
║ CIS [100330,3606] ║
╚════════════════════════╝
Disclaimer (must be)
**********
This software ( RAINBOW ) is provided on an "as is" basis without
warranty of any kind, expressed or implied, including but not limited
to the implied warranties of merchantability and fitness for a
particular purpose. The person using the software bears all risk as
to the quality and performance of the software. The author will not
be liable for any special, incidental, consequential, indirect or
similar damages due to loss of data or any other reason, even if the
author or an agent of the author has been advised of the possibility
of such damages. In no event shall the author's liability for any
damages ever exceed the price paid for the license to use the
software, regardless of the form of the claim.
This Software is freeware and may be distributed free of charges.
However sending a $10 gift with suggestions will help for their
realization.
Bernard Mercé
Le Poulindu
France 56610 Arradon
What is RAINBOW ?
*****************
RAINBOW is an editor which allows creating a 256 colors palette for some Super-
VGA modes. It works in the 640 x 480 and 800 x 600 graphic modes ( and perhaps
higher ).
Quick start.
************
Type 'rainbow colors.pal' at DOS prompt.
The whole color table 'colors.pal' is displayed. This screen is the pivot
of the program. Whatever you like to do, you must begin it at this point.
Any action begins with selecting a color field.
Move the mouse cursor to a field and click it with the left mouse button.
A menu is displayed on the right. Because 'Edit' is the main function of
Rainbow, the cursor is already on the 'Edit' item. Click it.
Three sliders appear corresponding to the three basic colors. Select one slider
clicking on it. It becomes thicker and the cross line may be moved verticaly
with the mouse. When doing this, you can see how the color changes in the
selected field. Clicking again with the left button will enter the new value,
clicking with the right button will restore the old value. Another slider may be
now selected. When the color is what you expect, click the rigth button to leave
the slider field and come back to the colors field where a new color may be
selected.
Keep in mind this rule:
the left mouse button is used to select or enter a value, the right one
to leave a function. Additionaly, the <Esc> key has the same function as
the right button.
You are now back to the main 'Select' screen.
If you like to see better the color fields, you can change to the coarse mode.
Press the <F2> key. Only 64 fields are now displayed. The visible page may be
changed with <PgDn> and <PgUp>. Colors may be edited as explained above.
Additionnaly, the RGB values of each color are displayed.
Misceleanous functions.
***********************
COPY
To copy a field over another, select the source field, then the 'Copy' item of
the menu and at last click on the destination field.
Note that both fields must be visible.
INSERT
To insert a field at any place in the table, select the field where to insert,
then the 'Insert' menu item. All color fields after the selected place will be
shifted to the right. Note the highest field will be lost.
DELETE
To delete a field, proceed on the same way as for insert but click the 'Delete'
menu item.
BASIC COLORS in the 5 top entries.
Rainbow needs black, white, red, green and blue for text, cursor and sliders .
It looks for them in the table and chooses the nearest colors it can find.
Do'nt wonder if slider's or text's color changes. If you really need the left
slider red ...and so on, force it with <F4>. The last 5 entries of the table
will be set to the basic colors (RBGWB). Pressing <F4> again will bring you back
to your whole palette. Forced basic colors can't be selected or changed.
Working with PCX pictures.
**************************
Rainbow accepts also PCX images as input files. They must be in 256 colors mode
( in the PCX file second byte = 5 ).
First the image is displayed, press any key to continue. The color palette will
be displayed. From the 'select' screen or in the editing function, you may
toggle the display between table and picture with the middle mouse button
or <F3>.
This feature use intensively the paging facilities of the SuperVGA card.
Because this paging have never been a standard, some cards may display the
image truncated or splitted. In that case, start the program with the switch -p
to disable the paging function; you have only the possibility to toggle with
<F3> between picture and palette at 'select' screen level.
For some large pictures, using a higher resolution may be necessary. Use the
switch -m4 will start Rainbow in the resolution 600x800, -m5 should do it
with 1024x748. In that case use the -p switch if your SuperVGA card has
'only' 1Mb, 2Mb are necessary for paging at this high resolution.
Input and output files
**********************
Input file name may be entered without any switch. Output file name may be
defined with the '-o' switch.
The command :
rainbow colors.pal -ocolors2.pal
will read colors.pal and write the result to the file colors2.pal.
If no output file is entered, the input file will be used ( and overwritten).
If neither input nor output file are defined, the build in color table will be
displayed ( depending on the graphic driver ) and the default output file name
'test.pal" will be proposed.
If the input file was a PCX image you have both possibilities to save the color
table separatly or to insert it into the PCX file.
Files format
************
File are ASCII.
No header, every line correspond to a color and contains four values:
12, 48, 124, 196
where
12 is the name ( index 0..255) of the color in the table,
48 is the red componant
124 green
196 blue.
Note that the RGB values may be varied from 0 to 252 in steps of 4. The 2 LSB
are ignored and may be, you will have to shift 2 bits to the right, depending
on your application.
GRAPHIC MODES
*************
1 --> Autodetect
2 --> Autodetect 640*400
3 --> Autodetect 640*480 ** DEFAULT **
4 --> Autodetect 800*600
5 --> Autodetect 1024*768
6 --> 640x350x256 Tseng ET3000
7 --> 640x480x256 Tseng ET3000
8 --> 800x600x256 Tseng ET3000
9 --> 640x350x256 Tseng ET4000
10 --> 640x400x256 Tseng ET4000
11 --> 640x480x256 Tseng ET4000
12 --> 800x600x256 Tseng ET4000
13 --> 1024x768x256 Tseng ET4000
14 --> 640x400x256 Trident 8900
15 --> 640x480x256 Trident 8900
16 --> 800x600x256 Trident 8900
17 --> 1024x768x256 Trident 8900
18 --> 640x400x256 Video7
19 --> 640x480x256 Video7
20 --> 800x600x256 Video7
21 --> 640x400x256 ATI VGA
22 --> 640x480x256 ATI VGA
23 --> 800x600x256 ATI VGA
24 --> 640x400x256 Paradise
25 --> 640x480x256 Paradise
26 --> 800x600x256 Paradise
27 --> 640x350x256 Everex
28 --> 640x400x256 Everex
29 --> 640x480x256 Everex
30 --> 800x600x256 Everex
31 --> 640x400x256 Oak
32 --> 800x600x256 Oak
33 --> 640x400x256 VESA
34 --> 640x480x256 VESA
35 --> 800x600x256 VESA
36 --> 1024x768x256 VESA
Troubles
********
A graphic driver is included which should support the most current SuperVGA
cards ( thanks U. v. Bassewitz ).
The most probable source of troubles will be the high diversity of SuperVGa
cards. If you get any error message including the word 'graphic', do'nt be
depressed, I provided an rescue solution. It is possible to use a third-party
external BGI driver which you expect to fit to your SuperVGA card.
Call 'Rainbow', with the following parameters:
rainbow colors.pal -d[drivername] -m[mode]
where -d is the switch and 'drivername' ... but WITHOUT extension (.BGI)
-m is the switch and 'mode' is the code the driver uses for the video
mode you like to use.
The driver must be in the same directory as Rainbow.
**************
Sun and rain are necessary for a rainbow. I wish you both when using 'Rainbow'.
**************