b2dCyclePalette

Category: 2D Overlay

Syntax:

b2dCyclePalette:Void(imageHandle:Int, startIndex:Int, endIndex:Int, speed:Double)


Parameters

Returns

Void



Summary

Animates an indexed image by rotating a range of its palette entries (classic palette cycling).

View detailed documentation online



Example
b2dCyclePalette(img, 16, 31, 18.0)   ; forward
b2dCyclePalette(img2, 16, 31, -11.0) ; reverse

BambooBasic © 2026 Michael Denathorn