NML:Recolour sprites

From GRFSpecs
Revision as of 11:13, 21 August 2011 by FooBar (talk | contribs) (content of nml r1625)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Recolour sprites are special sprites that are used to recolour other sprites, for example to apply company colours. It's basically a remapping of the colour table.

 recolour_sprite {
 	0xC6: 0x28;
 	0xC7: 0xF5;
 	0xC8..0xCD: 0x0A..0x0F;
 }

The above example will remap colour 0xC6 as 0x28, 0xC7 as 0xF5 and the range 0xC8 to 0xCD to the colours 0x0A..0x0F. This is one of the company colour recolour sprites defined in the baseset. Please note that in NML every recolour sprite will use the DOS palette. If your actual graphics files use te windows palette, nmlc will silently convert the recolour sprite to the windows palette before writing it to the output file.