.pal: Difference between revisions
m (RFC 2119 modal verbs detected; adding template) |
Rainwarrior (talk | contribs) (use of MUST here is WRONG, especially since the article has counterexamples) |
||
Line 3: | Line 3: | ||
Before [[NTSC video]] was fully understood, emulators also used palette files to translate the [[PPU palettes|PPU's HSV color values]] into sRGB values for the PC display. | Before [[NTSC video]] was fully understood, emulators also used palette files to translate the [[PPU palettes|PPU's HSV color values]] into sRGB values for the PC display. | ||
Most palette files used by NES emulators are 192 bytes in size. | Most palette files used by NES emulators are 192 bytes in size, consisting of 64 3-byte entries, one for each of 64 NES color values. | ||
Each entry consists of three unsigned 8-bit bytes, in the order red intensity, green intensity, and blue intensity. | |||
Intensity is most commonly ranged from 0 (black) to 255 (full intensity), presuming the [[wikipedia:sRGB|sRGB]] color space used by most monitors. | |||
Most emulators will ignore any entries past the first 64, but an optional extension of the .pal format (currently only known to be supported by Nintendulator 0.965 and later) lengthens the file to 1536 bytes in order to store each palette value when colour (de-)emphasis bits are applied. This allows customization of the emphasis behaviour, and is particularly useful for representing the alternative emphasis behaviour of the RGB PPU used in the [[Vs. System]] and PlayChoice. | |||
== See Also == | |||
* [[PPU palettes]] | |||
== External links == | == External links == | ||
*[http://www.shikadi.net/moddingwiki/VGA_Palette VGA Palette on ModdingWiki] | *[http://www.shikadi.net/moddingwiki/VGA_Palette VGA Palette on ModdingWiki] | ||
[[Category:File formats]] | [[Category:File formats]] |
Revision as of 16:56, 26 May 2015
.pal is an extension used by palette files for NES emulators. Palette files are required for emulation of the RGB PPUs of the VS Unisystem, PlayChoice 10, and Famicom Titler systems. Before NTSC video was fully understood, emulators also used palette files to translate the PPU's HSV color values into sRGB values for the PC display.
Most palette files used by NES emulators are 192 bytes in size, consisting of 64 3-byte entries, one for each of 64 NES color values.
Each entry consists of three unsigned 8-bit bytes, in the order red intensity, green intensity, and blue intensity.
Intensity is most commonly ranged from 0 (black) to 255 (full intensity), presuming the sRGB color space used by most monitors.
Most emulators will ignore any entries past the first 64, but an optional extension of the .pal format (currently only known to be supported by Nintendulator 0.965 and later) lengthens the file to 1536 bytes in order to store each palette value when colour (de-)emphasis bits are applied. This allows customization of the emphasis behaviour, and is particularly useful for representing the alternative emphasis behaviour of the RGB PPU used in the Vs. System and PlayChoice.