[Ilugc] [Tip] Cycle through a 256 colour palette

Tha.Suresh jemenisuresh at gmail.com
Sun Nov 21 17:41:01 IST 2010


cycle through a 256 colour palette

$ yes "$(seq 1 255)" | while read i; do printf "\x1b[48;5;${i}m\n";
sleep .01; done

Rainbow, instead of greys

If you want black and grey only, try this,

$ yes "$(seq 232 255;seq 254 -1 233)" | while read i; do printf
"\x1b[48;5;${i}m\n"; sleep .01; done

just for fun

 :-)



-- 
Regards,
Tha.Suresh
http://thasulinux.wordpress.com


More information about the ilugc mailing list