web background color

This commit is contained in:
2025-12-29 13:59:09 +01:00
parent 7b5cf06bd0
commit ea3530c01e
2 changed files with 3 additions and 3 deletions

2
main.c
View File

@ -464,6 +464,7 @@ void UpdateDrawFrame(void) {
isFullscreen = !isFullscreen; isFullscreen = !isFullscreen;
} }
Rectangle currentViewBounds = isFullscreen ? fullScreenBounds : normalBounds; Rectangle currentViewBounds = isFullscreen ? fullScreenBounds : normalBounds;
ClearBackground(BLACK);
BeginDrawing(); BeginDrawing();
ClearBackground(COLOR_BG); ClearBackground(COLOR_BG);
// Grille fond // Grille fond
@ -517,4 +518,3 @@ int main () {
CloseWindow(); CloseWindow();
return 0; return 0;
} }

View File

@ -8,7 +8,7 @@
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #111; background-color: #19191e;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -19,7 +19,7 @@
canvas.emscripten { canvas.emscripten {
border: 0px none; border: 0px none;
background-color: black; background-color: #19191e;
display: block; display: block;
aspect-ratio: 16 / 9; aspect-ratio: 16 / 9;