Skip to content

raylib.ImageClearBackground

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Clear image background with given color

Parameters

Parameter Default Value Note
dst
color WHITE

Return value

None.

Notes

Example

img = raylib.GenImageColor(128, 128, raylib.RED)
// Repaint the entire image to black
raylib.ImageClearBackground img, raylib.BLACK
raylib.ExportImage img, "black.png"
raylib.UnloadImage img

Clone this wiki locally