Category: 2D Overlay
Syntax:
b2dLoadIndexedImage:Int(filePath:String)
Int
Loads a paletted (indexed-colour) PNG so its palette can be cycled/recoloured. Returns an image handle (0 on failure).
View detailed documentation online
img = b2dLoadIndexedImage("Media/waterfall.png")
b2dSetTransparentIndex(img, 0)
b2dCyclePalette(img, 16, 31, 18.0)
BambooBasic © 2026 Michael Denathorn