-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpalette.txt
50 lines (41 loc) · 1.47 KB
/
palette.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Palette info
============
Fix layer can only use the first 16 palettes.
Sprites can use all 256 palettes.
There are two special colors:
* first color ($400000) is the reference color for the video output.
It has to be $8000 (black with dark bit).
* last color ($401FFE) is the backdrop color (backmost layer on the screen).
Color format
------------
RGB5 D(ark)1 (RGB6 with each color sharing a least significant bit)
FEDCBA98 76543210
xxxxxxxx xxxxxxxx
|||||||| ||||||||
|||||||| ||||++++-- Blue bits 4-1
|||||||| ++++------ Green bits 4-1
||||++++----------- Red bits 4-1
|||+--------------- Blue bit 0
||+---------------- Green bit 0
|+----------------- Red bit 0
+------------------ "Dark bit" (RGB-1)
Bit | 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Def | Dark R0 G0 B0 R4 R3 R2 R1 G4 G3 G2 G1 B4 B3 B2 B1
Binary representation of each channel:
Red 000001
Green 000001
Blue 000001
|___||
| |__ shared between all channels (1 when "Dark bit" is 0?)
|_____ unique to each channel
The full range of color values for each channel is 00-3F.
Warning: the following RGB values are approximations due to the fact that a
resistor network is used to modify the actual color values.
See MAME source for more information:
https://github.com/mamedev/mame/blob/master/src/mame/video/neogeo.cpp
RGB #FFFFFF = Neo-Geo $7FFF
RGB #FEFEFE = Geo-Geo $FFFF
RGB #FDFDFD = Neo-Geo $0FFF
RGB #FCFCFC = Neo-Geo $8FFF
...........
RGB #000000 = Neo-Geo $8000