From 5df53693726b63fa16e18499f1d28b5fae6a70fe Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 19 Aug 2024 23:35:42 +0300 Subject: [PATCH] Tweak recipe arrows --- source/application.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source/application.cpp b/source/application.cpp index aafe76f..467d200 100644 --- a/source/application.cpp +++ b/source/application.cpp @@ -1688,11 +1688,15 @@ namespace gmtk } i = 3; + + float s = 0.25f; + float t = 0.25f * std::sqrt(0.75f); + painter_.triangle( - pen + geom::vector{(i - 0.25f) * step, -0.25f * step}, - pen + geom::vector{(i - 0.25f) * step, 0.25f * step}, - pen + geom::vector{(i + 0.25f) * step, 0.f}, - {127, 127, 127, 255} + pen + geom::vector{(i - t) * step, -s * step}, + pen + geom::vector{(i - t) * step, s * step}, + pen + geom::vector{(i + t) * step, 0.f}, + {192, 192, 192, 255} ); i = 4;