Colors: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
(Color depth examples)
mNo edit summary
Line 1: Line 1:
[[File:Pal perfect.png|thumb|All 65536 (2^16) possible NeoGeo colors.]]
[[File:Pal perfect.png|thumb|All 65536 (2^16) possible NeoGeo colors.]]


Each color component (red, green or blue) on the NeoGeo is coded with '''6 bits with 1 common bit''' (dark bit), effectively making full use of the 16 color definition bits (65536 colors palette).
Each color component (red, green or blue) on the NeoGeo is coded with '''6 bits and 1 common bit''' (dark bit), effectively making full use of the 16 color definition bits (65536 colors palette).
 
Colors definitions are stored in [[palettes]].


=Format=
=Format=
Line 26: Line 28:


<gallery widths=240 heights=192>
<gallery widths=240 heights=192>
File:Hsv_full.png|Full 24 bit HSV gradient
File:Hsv_full.png|Full 24 bits HSV gradient (typical computer monitor)
File:Hsv_neogeo.png|Full NeoGeo gradient (16 bit)
File:Hsv_neogeo.png|Full NeoGeo gradient (16 bits)
File:Hsv_neogeo_nodak.png|Without using the dark bit (like some image converters)
File:Hsv_neogeo_nodak.png|Without using the dark bit (some image converters ignore it)
File:Hsv_neogeo_4bit.png|Without using the whole upper nibble (12 bit)
File:Hsv_neogeo_4bit.png|Without using the whole upper nibble (12 bits only)
</gallery>
</gallery>



Revision as of 03:03, 12 May 2017

All 65536 (2^16) possible NeoGeo colors.

Each color component (red, green or blue) on the NeoGeo is coded with 6 bits and 1 common bit (dark bit), effectively making full use of the 16 color definition bits (65536 colors palette).

Colors definitions are stored in palettes.

Format

A color word is composed in the following manner:

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Def Dark bit R0G0B0R4R3R2R1G4G3G2G1B4B3B2B1

Which can also be seen in a simpler way:

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Def LSBs Red MSBsGreen MSBsBlue MSBs

With:

  • Red: R4~0
  • Green: G4~0
  • Blue: B4~0
  • The dark bit, used as a common LSB for the 3 components

The upper 4 bits of each component fit in 3 nibbles, making it easy to write or guess color values ($0F00 is red, $00F0 is green...).

Color depth

The NeoGeo's 16 bit color depth is close to the 15 bit depths of the SNES, GBA and Saturn consoles.

Converter

Enter 24 bit RGB values to get the NeoGeo color word.