tuning for website

This commit is contained in:
Jakob Hördt 2024-08-08 03:58:45 +02:00
parent 7ac814bc48
commit 95233f5fbe
2 changed files with 9 additions and 8 deletions

View file

@ -8,6 +8,7 @@
<style>
body {
margin: 0;
background-color: black;
}
</style>
</head>

View file

@ -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 <auto EF>
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)}
}
);