\documentclass{minimal}
\usepackage{amsmath}
\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{1pt}
\usepackage{pgf}
\usepackage{tikz}
\usepgfmodule{plot}
\usepgflibrary{plothandlers}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shadings}
\begin{document}
\begin{preview}
%tikz
\begin{tikzpicture}[every node/.style={draw,scale=1pt,
minimum width=20pt,inner sep=3pt,
line width=0pt,draw=black}]
\matrix[row sep=2pt,column sep=2pt]
{\node[fill=red]{6};&
\node[]{7};&
\node[]{8};&
\node[]{9};&
\node[]{10};\\
\node[upper left=red,upper right=green,lower left=blue,lower right=-red,text=-green,thick,draw=-blue]{1};&
\node[,upper left=red,upper right=green,lower left=blue,lower right=-red,text=-green]{2};&
\node[,upper left=red,upper right=green,lower left=blue,lower right=-red]{3};&
\node[left color=red,right color=green,middle color=blue]{4};&
\node[left color=red,right color=green]{5};\\
};
\end{tikzpicture}
\end{preview}
\end{document}