Generate an RGB colour grid
Bash, 44

2 bytes saved thanks to @NahuelFouilleul
2 bytes saved thanks to @manatwork


printf &quot;${f=^[[3%dm.}$f$f
&quot; 1 3 5 3 2 6 5 6 4

Here, blocks are . characters.  ^[ is a literal ASCII escape character (0x1b).

You can recreate this script as follows:
base64 -d &lt;&lt;&lt; cHJpbnRmICIke2Y9G1szJWRtLn0kZiRmCiIgMSAzIDUgMyAyIDYgNSA2IDQ= &gt; rgbgrid.sh