Paints all the cubes.

def paint_pattern(self):
        """
        Paints all the cubes.

        """
        x = 0
        while x < self.width:
            y = 0
            while y < self.height:
                self.paint_cube(x, y)
                y += self.cube_size
            x += self.cube_size