Basepalette (DEF): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''basepalette''' <basepal> { [...] } | '''basepalette''' <basepal> { [...] } | ||
Loads a [[palette|base palette]]. | Loads a [[palette|base palette]] from a raw image file. | ||
Not to be confused with [[palookup (DEF)| | The image file must NOT contain a 256 color table of its own. Each pixel from the image will be converted to a color in the base palette. | ||
A single image file may contain multiple base palettes, and '''offset''' can used to locate it. | |||
Not to be confused with [[palookup (DEF)|lookup palette]]. See also [[Palette (environment)#Global Palettes|palette listing]]. | |||
== Tokens == | == Tokens == |
Revision as of 01:32, 22 February 2020
basepalette <basepal> { [...] }
Loads a base palette from a raw image file.
The image file must NOT contain a 256 color table of its own. Each pixel from the image will be converted to a color in the base palette.
A single image file may contain multiple base palettes, and offset can used to locate it.
Not to be confused with lookup palette. See also palette listing.
Tokens
raw
- file
- offset
- shiftleft
copy undef