-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ClearBackground
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Set background color (framebuffer clear color)
| Parameter | Default Value | Note |
|---|---|---|
| color | BLACK |
None.
raylib.InitWindow 800, 600, "ClearBackground"
while not raylib.WindowShouldClose
raylib.BeginDrawing
raylib.ClearBackground raylib.DARKBLUE
raylib.EndDrawing
end while
raylib.CloseWindow