pal_n_sq function

Get n-by-n dedicated colors of a color palette.