Generates a background filled with square shapes.

The size of the squares are calculated by the amount of squares we wanna display per horizontal line.

Trying to improve algorithm to provide higher speeds when the squares are more dense