|
| Fader (MADSEngine *vm) |
|
void | setPalette (const byte *colors, uint start, uint num) |
|
void | grabPalette (byte *colors, uint start, uint num) |
|
void | getFullPalette (byte palette[(256 *3)]) |
|
void | setFullPalette (byte palette[(256 *3)]) |
|
int | rgbMerge (byte r, byte g, byte b) |
|
int | rgbMerge (RGB6 &palEntry) |
|
void | fadeOut (byte palette[(256 *3)], byte *paletteMap, int baseColor, int numColors, int baseGrey, int numGreys, int tickDelay, int steps) |
|
void | fadeIn (byte palette[(256 *3)], byte destPalette[(256 *3)], int baseColor, int numColors, int baseGrey, int numGreys, int tickDelay, int steps) |
|
|
bool | _colorFlags [4] |
|
int | _colorValues [4] |
|
◆ Fader()
◆ setPalette()
void MADS::Fader::setPalette |
( |
const byte * |
colors, |
|
|
uint |
start, |
|
|
uint |
num |
|
) |
| |
◆ grabPalette()
void MADS::Fader::grabPalette |
( |
byte * |
colors, |
|
|
uint |
start, |
|
|
uint |
num |
|
) |
| |
Returns a subset of the currently loaded palette
◆ getFullPalette()
void MADS::Fader::getFullPalette |
( |
byte |
palette[(256 *3)] | ) |
|
Gets the entire palette at once
◆ setFullPalette()
void MADS::Fader::setFullPalette |
( |
byte |
palette[(256 *3)] | ) |
|
Sets the entire palette at once
◆ rgbMerge() [1/2]
int MADS::Fader::rgbMerge |
( |
byte |
r, |
|
|
byte |
g, |
|
|
byte |
b |
|
) |
| |
Calculates a merge/hash for a given palette entry
◆ rgbMerge() [2/2]
int MADS::Fader::rgbMerge |
( |
RGB6 & |
palEntry | ) |
|
Calculates a merge/hash for a given palette entry
◆ fadeOut()
void MADS::Fader::fadeOut |
( |
byte |
palette[(256 *3)], |
|
|
byte * |
paletteMap, |
|
|
int |
baseColor, |
|
|
int |
numColors, |
|
|
int |
baseGrey, |
|
|
int |
numGreys, |
|
|
int |
tickDelay, |
|
|
int |
steps |
|
) |
| |
Fades the given palette out to black or grey
◆ fadeIn()
void MADS::Fader::fadeIn |
( |
byte |
palette[(256 *3)], |
|
|
byte |
destPalette[(256 *3)], |
|
|
int |
baseColor, |
|
|
int |
numColors, |
|
|
int |
baseGrey, |
|
|
int |
numGreys, |
|
|
int |
tickDelay, |
|
|
int |
steps |
|
) |
| |
Fade into the given palette
The documentation for this class was generated from the following file: