Category: 2D Overlay
Syntax:
b2dResetPalette:Void(imageHandle:Int)
Void
Restores the palette to exactly as it was when the image was loaded.
Takes imageHandle.
Returns nothing.
This undoes every b2dSetImagePaletteColor change, clears any fade, and returns each running cycle to its starting position.
It does not remove the cycles themselves - they are rewound, not stopped, and carry straight on from the start. Use b2dClearCycles to stop them.
View detailed documentation online
; Fade the whole picture to black over one second, then restore it. Local t:Double = 0.0 While t < 1.0 t = t + 0.016 b2dFadePalette(img, 0, 0, 0, t) sysUpdateEvents() b2dCls() b2dDrawImage(img, 0, 0) b2dFlip() Wend b2dResetPalette(img)
BambooBasic © 2026 Michael Denathorn