Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function rgbToHsl(r, g, b, a)
h, s = 0, 0 -- achromatic
else
local d = max - min
local s
--local s -- <- FIXED: 's' should not be declared here as local.
if l > 0.5 then s = d / (2 - max - min) else s = d / (max + min) end
if max == r then
h = (g - b) / d
Expand Down