Differences From Artifact [b3b8393245]:
- File termcolors.lua — part of check-in [0f5a51907d] at 2023-04-13 07:26:12 on branch trunk — relicense to EUPL (user: lexi, size: 1613) [annotate] [blame] [check-ins using]
To Artifact [6674f3d0f6]:
- File termcolors.lua — part of check-in [f7c93df9f4] at 2024-07-10 19:07:16 on branch trunk — periodic update (user: lexi, size: 1617) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 |
-- [ʞ] termcolors.lua
-- ~ lexi hale <lexi@hale.su>
-- © EUPL v1.2
-- ? print grids comparing truecolor output to 256-color output
function conv(a)
return 16 + math.floor(a.r*5)*36 + math.floor(a.g*5)*6 + math.floor(a.b*5)
end
local S = 32
local M = 33 * 4
|
| |
1 2 3 4 5 6 7 8 9 10 |
-- [ʞ] termcolors.lua
-- ~ lexi hale <lexi@hale.su>
-- 🄯 GNU AGPL v3
-- ? print grids comparing truecolor output to 256-color output
function conv(a)
return 16 + math.floor(a.r*5)*36 + math.floor(a.g*5)*6 + math.floor(a.b*5)
end
local S = 32
local M = 33 * 4
|