Create a grid of squares filled with a thousand non-overlapping circles, colored by a random gradient from a 16-color palette based on their position.