Jump to content

Palette: Difference between revisions

From EDukeWiki
No edit summary
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is the pointer to the current screen palette in use. The screen palette in use is what determines whether or not to apply the various tints which happen underwater, when night vision is enabled, et cetera. This is of very limited use to the average CON programmer. See [[spritenvg]], [[ifinwater]], and [[palfrom]].
The player structure member <code>palette</code> contains the ID of the ''basepalette'' currently in use. The screen palette determines the overall look of the scene, such as underwater, night vision, etc.
 
In older versions of EDuke32, it was necessary to use [[setgamepalette]] to change '''palette'''. This is no longer necessary.
 
Changing this value too often (e.g. every tic) is undesirable, so check the value before doing so.
 
See the [[Palette (environment)#Global Palettes|palette listing]] for how a palette will effect the look of the scene. See also [[palfrom]].
 
== Values ==
 
{{Basepals}}


[[Category:Player structure members]]
[[Category:Player structure members]]
[[Category:Palette editing]]

Latest revision as of 20:52, 10 March 2026

The player structure member palette contains the ID of the basepalette currently in use. The screen palette determines the overall look of the scene, such as underwater, night vision, etc.

In older versions of EDuke32, it was necessary to use setgamepalette to change palette. This is no longer necessary.

Changing this value too often (e.g. every tic) is undesirable, so check the value before doing so.

See the palette listing for how a palette will effect the look of the scene. See also palfrom.

Values

Base palettes. Not to be confused with lookup palettes (such as sprite palette)

Exposed Value Label Description
No 0 BASEPAL
No 1 WATERPAL
No 2 SLIMEPAL
No 3 DREALMSPAL
No 4 TITLEPAL
No 5 ENDINGPAL
No 6 ANIMPAL
Defines
define BASEPAL                          0
define WATERPAL                         1
define SLIMEPAL                         2
define DREALMSPAL                       3
define TITLEPAL                         4
define ENDINGPAL                        5
define ANIMPAL                          6