CyclePalette (int start, int end)
This is used for special effects, like the flowing colours on the Space
Quest 4 title screen, and the Sierra logo of the later Sierra games.
The palette indexes from START to END are cycled around one slot. Using
this call in a repeatedly_execute function gives the effect of animation.
By default, the colours rotate leftwards through the palette. If you pass
the arguments the other way round (ie. START being larger than END) then
the colours will rotate in the opposite direction.
NOTE: This command only works in 256-colour games.
Example:
CyclePalette(10,200);
will cause the palette indexes from 10 to 200 cycle around one slot and give a color effect.
See Also: FadeIn, FadeOut, SetPalRGB
|