fix color lib bug w/ large numbers overflowing

This commit is contained in:
Jill 2022-09-19 18:56:01 +03:00
parent 4408cb3aef
commit 36ee8fd056
1 changed files with 1 additions and 0 deletions

View File

@ -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