From 77199cde0b6a3658d203788e8f75d61b91cf267d Mon Sep 17 00:00:00 2001 From: zorg Date: Mon, 11 Dec 2023 04:37:55 +0100 Subject: [PATCH] Update colour.lua *To Appease A Linter.* --- colour.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colour.lua b/colour.lua index 6f661d1..9276daa 100644 --- a/colour.lua +++ b/colour.lua @@ -229,13 +229,13 @@ end --conversion between hsl and hsv function colour.hsl_to_hsv(h, s, l) local v = l + s * math.min(l, 1 - l) - local s = (v == 0) and 0 or (2 * (1 - l / v)) + s = (v == 0) and 0 or (2 * (1 - l / v)) return h, s, v end function colour.hsv_to_hsl(h, s, v) local l = v * (1 - s / 2) - local s = (l == 0 or l == 1) and 0 or ((v - l) / math.min(l, 1 - l)) + s = (l == 0 or l == 1) and 0 or ((v - l) / math.min(l, 1 - l)) return h, s, l end