Pals: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
Member of the [[player]] struct; '''''pals #''''' is an array which controls the tint values.  See [[pals_time]].
Member of the [[player]] struct; '''''pals #''''' is an array which controls the screen tint values induced by [[palfrom]].  See [[pals_time]].
 
'''''pals''''' is a 4-component array. The first three values are the 6-bit (0-63) RGB color values of the tint. The final one is the intensity value, also 6-bit (0-63), which controls the initial translucency of the tint before it fades out.
 
from build.h:
typedef struct {
    char r,g,b,f;
} palette_t;
 
from player.h:
palette_t pals;


[[Category:Player structure members]]
[[Category:Player structure members]]

Revision as of 20:08, 1 January 2012

Member of the player struct; pals # is an array which controls the screen tint values induced by palfrom. See pals_time.

pals is a 4-component array. The first three values are the 6-bit (0-63) RGB color values of the tint. The final one is the intensity value, also 6-bit (0-63), which controls the initial translucency of the tint before it fades out.

from build.h:

typedef struct {
    char r,g,b,f;
} palette_t;

from player.h:

palette_t pals;