#include <palette32.h>
Public Attributes | |
uint8 | fromColor |
uint16 | numColorsToCycle |
uint8 | currentCycle |
PalCyclerDirection | direction |
uint32 | lastUpdateTick |
int16 | delay |
uint16 | numTimesPaused |
PalCycler represents a range of palette entries that are rotated on a timer.
uint8 Sci::PalCycler::fromColor |
The color index of this palette cycler. This value is used as the unique key for this PalCycler object.
uint16 Sci::PalCycler::numColorsToCycle |
The number of palette slots which are to be cycled by this cycler.
uint8 Sci::PalCycler::currentCycle |
The current position of the first palette entry.
PalCyclerDirection Sci::PalCycler::direction |
The direction of the cycler.
uint32 Sci::PalCycler::lastUpdateTick |
The last tick the cycler cycled.
int16 Sci::PalCycler::delay |
The amount of time in ticks each cycle should take to complete. In other words, the higher the delay, the slower the cycle animation. If delay is 0, the cycler does not automatically cycle and needs to be cycled manually by calling doCycle
.
uint16 Sci::PalCycler::numTimesPaused |
The number of times this cycler has been paused.