Creates a rgb color sphere legend.
n (int) – length and height of resulting image
res – resulting sphere
rgb-array