Skip to content

raylib.ClearBackground

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set background color (framebuffer clear 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