The rest displays random letters A-F and numbers 0-9 on your terminal.
tput setaf 2 -- queries the terminfo database for the proper escape sequence for setting the terminal foreground to color 2 (green) and echoes it, turning your foreground that color
tput setaf 0 -- ditto, but for black background