From 95233f5fbecb5b5c4cb194defb41eadbe9d03c0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakob=20H=C3=B6rdt?=
<6329417-neop_@users.noreply.gitlab.com>
Date: Thu, 8 Aug 2024 03:58:45 +0200
Subject: [PATCH] tuning for website
---
emscripten_shell.html | 1 +
main.cpp | 16 ++++++++--------
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/emscripten_shell.html b/emscripten_shell.html
index 0f3a78b..6abad18 100644
--- a/emscripten_shell.html
+++ b/emscripten_shell.html
@@ -8,6 +8,7 @@
diff --git a/main.cpp b/main.cpp
index c4bc0f3..2a99190 100644
--- a/main.cpp
+++ b/main.cpp
@@ -62,9 +62,9 @@ auto operator+(SDL_Point a, SDL_Point b) {
using clock = std::chrono::steady_clock;
-constexpr int width = 2000;
-constexpr int height = 1000;
-constexpr auto steps_per_second = 1'000'000;
+constexpr int width = 1024;
+constexpr int height = 512;
+constexpr auto steps_per_second = 10'000;
template
struct [[nodiscard("give this a name so SDL_Quit is called at the end"
@@ -189,7 +189,7 @@ int main() try {
);
sdl_check(SDL_SetRenderTarget(renderer, texture));
sdl_check(
- SDL_SetRenderDrawColor(renderer, 0xff, 0xff, 0xff, SDL_ALPHA_OPAQUE)
+ SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, SDL_ALPHA_OPAQUE)
);
sdl_check(SDL_RenderClear(renderer));
@@ -203,10 +203,10 @@ int main() try {
{.pos = middle, .col = html2sdl_color(0x4C3BCF)},
{.pos = middle, .col = html2sdl_color(0x4B70F5)},
{.pos = middle, .col = html2sdl_color(0x3DC2EC)} */
- {.pos = middle, .col = html2sdl_color(0x006769)},
- {.pos = middle, .col = html2sdl_color(0x40A578)},
- {.pos = middle, .col = html2sdl_color(0x9DDE8B)},
- {.pos = middle, .col = html2sdl_color(0xE6FF94)}
+ {.pos = middle, .col = html2sdl_color(0x000000)},
+ {.pos = middle, .col = html2sdl_color(0x150050)},
+ {.pos = middle, .col = html2sdl_color(0x3F0071)},
+ {.pos = middle, .col = html2sdl_color(0xFB2576)}
}
);