Compare commits
4 Commits
1255038efb
...
a4c62bc3a4
| Author | SHA1 | Date | |
|---|---|---|---|
| a4c62bc3a4 | |||
| a71641b989 | |||
| ea3530c01e | |||
| 7b5cf06bd0 |
@ -1,4 +1,4 @@
|
||||
# TODO
|
||||
|
||||
- Auto ajustement, tout toujours visible
|
||||
- Caper les fps au choix
|
||||
- Compiler web
|
||||
|
||||
9
main.c
9
main.c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user