Skip to content

raylib.ClearBackground

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Clear background (framebuffer) to color

Parameters

Parameter Default Value Note
color BLACK

Return value

None.

Notes

Example

raylib.InitWindow 800, 600, "ClearBackground"
while not raylib.WindowShouldClose
    raylib.BeginDrawing
    raylib.ClearBackground raylib.DARKBLUE
    raylib.EndDrawing
end while
raylib.CloseWindow

Clone this wiki locally