blob: d17abe5fee339675befc6fde52f4da25c395d54b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
local utils = require "lib.utils"
local palette = utils.get_palette()
local output = [[-- autogenerated from palette.json
return {
]]
for name, value in utils.opairs(palette) do
for variant, v_value in utils.opairs(value) do
local color = "{ l = " .. v_value.l .. ", c = " .. v_value.c .. ", h = " .. v_value.h .. "}"
output = output .. " " .. name .. (variant == "normal" and "" or "_" .. variant) .. " = " .. color .. ",\n"
end
end
output = output .. "}"
print(output)
|