-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageClearBackground
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Clear image background with given color
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| color | WHITE |
None.
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