home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
gamefly
/
seepro.arj
/
COLORING.DAT
< prev
next >
Wrap
Text File
|
1991-04-27
|
3KB
|
126 lines
'COLORING.DAT
'============
'essentials as always
INPUT, see03.sc1
OUTPUT, test.sc1
DIR
'Coloring is a big topic: here we'll discuss the elementary aspects
'of it.
'Colors: there are 15 colors available to you in FS (sixteen, sort
'of) and in SEE they are coded by number:
' Code Color
' ---- -----
' 0 Black
' 1 Dark Green
' 2 Dark blue
' 3 Light blue
' 4 Orange
' 5 Light Grey
' 6 Royal blue
' 7 Sky blue
' 8 Khaki
' 9 Yellow
' 10 Dark Grey
' 11 Light Green
' 12 Red
' 13 Gold
' 14 White*
' 15 White
'If you want to change all the polygons that are colored red in
'the original scenery file to having a red color (still) during day
'and an orange color during dawn and dusk and a gold color at night
'here's how you do it with SEE:
'first tell SEE to find the polygons that you are interested in
'(the red ones) adjusting:
FIND, COLOR, 12
'(12 is the code for red from the table)
'next we have to tell SEE what the new colors are to be:
COLOR, 12, 4, 13
'(12 = red @ day, 4 = orange @ dusk, 13 = gold @ night from the table)
'finally we tell SEE that it's polygons we're interested in
'and we're done:
POLY
'now when you run SEE it will hunt up all the red polygons and give
'them the time dependent colors that you wanted.
'The procedure is identical for rivers:
FIND, COLOR, 12
COLOR, 12, 4, 13
'except we use RIVER instead of POLY
RIVER
'The procedure is identical for lines too:
FIND, COLOR, 12
COLOR, 12, 4, 13
'except we use LINE
LINE
'Guess what about roads! The same thing applies:
FIND, COLOR, 12
COLOR, 12, 4, 13
'except we use ROAD
ROAD
'So with these few instructions we've been able
'to give all red polygons; rivers; lines and roads
'new day; dusk; and night coloring.
'However; it can get pretty tedious to have to do this for
'each of the 15 colors possible:
'Inside SEE is a Color Table which is actually like having an
'internal COLOR statement for each of the colors possible
'(the table itself is shown at the end of this file).
'So if you wanted to give all your polygons day/dusk/night
'coloring you would tell SEE:
FIND, ALL
POLY
'and likewise:
FIND, ALL
RIVER
FIND, ALL
LINE
FIND, ALL
ROAD
'OK; that's enough for this lesson.
SAVE
END
Attached is a table representing SEE's internal color map (it can
be thought of as a complete set of 16 COLOR commands).
By the way, if any element of this color map is not to your liking
you may change it at any time by including the MAP command:
MAP, day color code, dusk color code, night color code
'color day dusk night
'--------- --- ---- -----
'Black 0 13 0
'Dark Green 1 8 10
'Dark blue 2 2 10
'Light blue 3 6 2
'Orange 4 12 8
'Light Grey 5 10 0
'Royal blue 6 2 2
'Sky blue 7 6 2
'Khaki 8 10 0
'Yellow 9 13 8
'Dark Grey 10 10 0
'Light Green 11 1 8
'Red 12 4 5
'Gold 13 5 10
'White* 14 14 10
'White 15 14 5