Displaying a 256 colour palette directly in the unix terminal. Printing each color number using the corresponding text color. The shell script uses ANSI escape codes to set the text color for each number and arranges them in rows of 8 for clear visualization.
for i in {0..255}; do printf "\e[38;5;${i}m %3d \e[0m " $i if (( (i + 1) % 8 == 0 )); then echo fi done
Contribution for genuary #16 (2025): ‘Generative palette’. Prompt credit: Stranger in the Q