Misc fixes, color script and hex <-> color conversions

This commit is contained in:
2024-05-03 22:31:08 +01:00
parent 24cf0e56bb
commit bfc919c4ce
4 changed files with 41 additions and 2 deletions

6
scripts/colors.sh Executable file
View File

@@ -0,0 +1,6 @@
for i in {0..255} ; do
printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
printf "\n";
fi
done