Category: 2D Overlay
Syntax:
b2dAddPaletteCycle:Void(imageHandle:Int, startIndex:Int, endIndex:Int, speed:Double)
Void
Adds another palette cycle, leaving any existing ones alone.
Takes the same arguments as b2dCyclePalette.
Returns nothing.
This is the explicit "really add another" call: unlike b2dCyclePalette it does no overlap check, so it is for running several independent bands at once - a waterfall and a fire, say, in different parts of the same palette. Do not call it every frame, or cycles accumulate without limit.
View detailed documentation online
; Two independent bands running at different speeds. b2dAddPaletteCycle(img, 16, 31, 8.0) b2dAddPaletteCycle(img, 32, 47, -3.0)
BambooBasic © 2026 Michael Denathorn