Differences From Artifact [ccbbe9b5fc]:
- File termcolors.lua — part of check-in [54874eb3eb] at 2022-12-26 13:31:53 on branch trunk — add termcolors, update parvan and compose (user: lexi, size: 1610) [annotate] [blame] [check-ins using]
To 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]
1 1 -- [ʞ] termcolors.lua 2 2 -- ~ lexi hale <lexi@hale.su> 3 --- © AGPLv3 3 +-- © EUPL v1.2 4 4 -- ? print grids comparing truecolor output to 256-color output 5 5 6 6 function conv(a) 7 7 return 16 + math.floor(a.r*5)*36 + math.floor(a.g*5)*6 + math.floor(a.b*5) 8 8 end 9 9 local S = 32 10 10 local M = 33 * 4