Skip to content

RotatePalette (RSDKv3)

Description

Rotates all colors in PalBank from StartIndex to EndIndex, moving left or right depending on RotRight.

Parameters

PalBank

The ID of the palette bank for the palette to rotate. Indices 0-7 are valid.

StartIndex

The starting index of the palette bank for the rotation.

EndIndex

The ending index of the palette bank for the rotation.

RotRight

Rotates right if true; otherwise, rotates left.

Return Value

None.

Syntax

RotatePalette(int PalBank, int StartIndex, int EndIndex, bool RotRight)

Example

RotatePalette(2, 16, 24, 1)