From 6f0f3f01d9fe12a3821444449eb3500da5943e1c Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Thu, 21 Nov 2024 16:33:29 -0500 Subject: [PATCH] A bit of playing with sizes and motion on the image. --- scratchpad/img2ansi.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scratchpad/img2ansi.cpp b/scratchpad/img2ansi.cpp index c1d700b..e102557 100644 --- a/scratchpad/img2ansi.cpp +++ b/scratchpad/img2ansi.cpp @@ -125,11 +125,10 @@ int main(int argc, char *argv[]) { SFMLRender renderer; if(renderer.resize_grid(10, panel)) { - println("RESIZED: {},{}", panel.width, panel.height); - // set canvas to best size drawing = Canvas(panel.width * 2, panel.height * 4); } + panel.set_renderer(Renderer([&]{ for(size_t x = 0; x < colors.size(); x++) { for(size_t y = 0; y < colors[0].size(); y++) { @@ -153,7 +152,7 @@ int main(int argc, char *argv[]) { } } - std::this_thread::sleep_for(10ms); + std::this_thread::sleep_for(100ms); } return 0;