From 36ee8fd056ba1bae4e166f87510af0ed15e26ba4 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Mon, 19 Sep 2022 18:56:01 +0300 Subject: [PATCH] fix color lib bug w/ large numbers overflowing --- template/stdlib/color.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/template/stdlib/color.lua b/template/stdlib/color.lua index 4855741..a1da8c4 100644 --- a/template/stdlib/color.lua +++ b/template/stdlib/color.lua @@ -284,6 +284,7 @@ end --- smoother hsv. not correct but looks nicer ---@return color function shsv(h, s, v, a) + h = h % 1 return hsv(h * h * (3 - 2 * h), s, v, a) end