home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
graphics
/
utility
/
raymovi2.lzh
/
RAYMOVI2
/
COLORS.H
(
.txt
)
< prev
next >
Wrap
Text File
|
1988-12-21
|
2KB
|
79 lines
/* colors.h defines palletes
OBJECTS: | cr cg cb
----------------+-------------------------------
balls: |
white | 1 1 1
red | 1 0 0
|
floor: |
black cracks | 0 0 0
white tiles | 1 1 1
blue tiles | 0 0 1
MODE (#colors) generated intensities | color number output
ind: cr cg cb | white red blue
------------------------------------------------+------------------------------
1 -ign- -ign- x | 1-15,0 -
2 x -ign- x | 1-6,0 8-15
3 x x x | 1-5,0 1,6-10 1,11-15
/**/
/* ind = 1: 1 color */
colors(7,7,7) /* all white-ish */
colors(0,0,0) /* black */
colors(0,0,1) /* somewhat lighter */
colors(1,1,1)
colors(1,1,2)
colors(2,2,2) /* note: since there are only 8 grey scales in the */
colors(2,2,3) /* hardware (per color) and we generate 16 */
colors(3,3,3) /* some hue variation will be produced as */
colors(3,3,4) /* the intensity varies */
colors(4,4,4)
colors(4,4,5)
colors(5,5,5)
colors(5,5,6)
colors(6,6,6)
colors(6,6,7)
colors(6,7,7) /* almost white */
/* ind = 2: 2 color */
colors(7,7,7) /* white */
colors(0,0,0)
colors(1,1,1)
colors(2,2,2)
colors(3,3,3)
colors(4,4,4)
colors(5,5,5)
colors(6,6,6)
colors(0,0,0) /* red */
colors(1,0,0)
colors(2,0,0)
colors(3,0,0)
colors(4,0,0)
colors(5,0,0)
colors(6,0,0)
colors(7,0,0)
/* ind = 3: 3 color */
colors(7,7,7) /* white */
colors(0,0,0)
colors(2,2,2)
colors(4,4,4)
colors(5,5,5)
colors(6,6,6)
colors(3,0,0) /* red */
colors(4,0,0)
colors(5,0,0)
colors(6,0,0)
colors(7,0,0)
colors(0,0,3) /* blue */
colors(0,0,4)
colors(0,0,5)
colors(0,0,6)
colors(0,0,7)