Basepalette (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
Line 15: Line 15:
'''raw''' { [...] }
'''raw''' { [...] }


Description.
DESCRIPTION


:: '''file''' <filename>
:: '''file''' <filename>


:: Description.
:: DESCRIPTION


:: '''offset''' <value>
:: '''offset''' <value>


:: Description.
:: DESCRIPTION


:: '''shiftleft''' <>
:: '''shiftleft''' <>


:: Description.
:: DESCRIPTION


'''copy''' <palnum>
'''copy''' <palnum>


Description.
DESCRIPTION


'''undef''' <>
'''undef''' <>


Description.
DESCRIPTION


== Examples ==
== Examples ==

Revision as of 09:08, 22 February 2020

This page is under construction.
Please help review and edit this page.

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 { [...] }

DESCRIPTION

file <filename>
DESCRIPTION
offset <value>
DESCRIPTION
shiftleft <>
DESCRIPTION

copy <palnum>

DESCRIPTION

undef <>

DESCRIPTION

Examples

The following PNG image contains all base palettes in Duke Nukem 3D v1.5:

This example will load 3 base palettes in the same file:

basepalette 1 { raw { file "basepal.raw" } }
basepalette 2 { raw { file "basepal.raw" offset 768 } }
basepalette 3 { raw { file "basepal.raw" offset 1536 } }