2023-03-28 15:08:48 +02:00
|
|
|
map_values(map_values({
|
|
|
|
hex: .hex | ltrimstr("#"),
|
|
|
|
rgb: .raw | split(", ") | map(tonumber),
|
|
|
|
hsl: .hsl
|
2023-03-29 03:13:22 +02:00
|
|
|
| ltrimstr("hsl(")
|
|
|
|
| rtrimstr(")")
|
|
|
|
| split(", ")
|
|
|
|
| map(rtrimstr("%") | tonumber)
|
2023-03-28 15:08:48 +02:00
|
|
|
| [ .[0], .[1] / 100, .[2] / 100 ]
|
|
|
|
}))
|