Compare commits

...

4 Commits

Author SHA1 Message Date
a4c62bc3a4 todo 2025-12-29 14:05:45 +01:00
a71641b989 web finish 2025-12-29 14:04:12 +01:00
ea3530c01e web background color 2025-12-29 13:59:09 +01:00
7b5cf06bd0 todo 2025-12-29 13:54:06 +01:00
3 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# TODO
- Auto ajustement, tout toujours visible
- Caper les fps au choix
- Compiler web

9
main.c
View File

@ -466,9 +466,17 @@ void UpdateDrawFrame(void) {
Rectangle currentViewBounds = isFullscreen ? fullScreenBounds : normalBounds;
BeginDrawing();
ClearBackground(COLOR_BG);
float gridThick = 1.1f;
float gridAlpha = 0.03f;
// Grille fond
for(int i = UI_WIDTH; i < 1920; i += 100) DrawLine(i, 0, i, 1080, Fade(WHITE, 0.05f));
for(int i = 0; i < 1080; i += 100) DrawLine(UI_WIDTH, i, 1920, i, Fade(WHITE, 0.05f));
for(int i = UI_WIDTH; i < 1920; i += 100) {
DrawLineEx((Vector2){i, 0}, (Vector2){i, 1080}, gridThick, Fade(WHITE, gridAlpha));
}
for(int i = 0; i < 1080; i += 100) {
DrawLineEx((Vector2){UI_WIDTH, i}, (Vector2){1920, i}, gridThick, Fade(WHITE, gridAlpha));
}
DrawMichelsonSchema(&mic);
DrawControlPanel(&mic);
@ -517,4 +525,3 @@ int main () {
CloseWindow();
return 0;
}

View File

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