diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51a4bc8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +color_rules \ No newline at end of file diff --git a/colors.lua b/colors.lua index be56c7a..9e04d02 100644 --- a/colors.lua +++ b/colors.lua @@ -7,9 +7,9 @@ local max = math.max local min = math.min local pow = math.pow local random = math.random --- local debug = require("helpers").debug local gcolor = require("gears.color") local parse_color = gcolor.parse_color + -- Returns a value that is clipped to interval edges if it falls outside the interval local function clip(num, min_num, max_num) return max(min(num, max_num), min_num) end