Palookup (DEF): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
floorpal | floorpal | ||
nofloorpal | nofloorpal | ||
== Examples == | |||
palookup 0 { raw { file "8bit/palettes/shadetable.raw" } } | |||
palookup 1 { raw { file "palettes/pallookup.raw" noshades } } | |||
palookup 2 { raw { file "palettes/pallookup.raw" offset 256 noshades } } | |||
palookup 3 { raw { file "palettes/pallookup.raw" offset 512 noshades } } | |||
[[Category:WIP pages]] | [[Category:WIP pages]] | ||
[[Category:DEF commands]] | [[Category:DEF commands]] |
Revision as of 01:44, 22 February 2020
palookup <palnum> { [...] }
Loads a lookup palette from a raw image file.
The image file MUST contain a 256 color table of its own. Each pixel will have their matching color in the table converted in the lookup table.
A single image file may contain multiple lookup palettes, and offset can used to locate it.
Not to be confused with base palette. See also shadefactor and palette listing.
Tokens
raw
- file
- offset
- noshades
copy undef fogpal
- red
- green
- blue
makepalookup
- red
- green
- blue
- remappal
- remapself
floorpal nofloorpal
Examples
palookup 0 { raw { file "8bit/palettes/shadetable.raw" } }
palookup 1 { raw { file "palettes/pallookup.raw" noshades } } palookup 2 { raw { file "palettes/pallookup.raw" offset 256 noshades } } palookup 3 { raw { file "palettes/pallookup.raw" offset 512 noshades } }