(win_size: Tuple, border: float, batch=None)
| 28 | |
| 29 | |
| 30 | def load_rectangles(win_size: Tuple, border: float, batch=None): |
| 31 | rectangles = [] |
| 32 | top = rectangle.RectangleObject( |
| 33 | x=0, y=win_size[1] - border, width=win_size[0], height=border, batch=batch |
| 34 | ) |
| 35 | left = rectangle.RectangleObject( |
| 36 | x=0, y=0, width=border, height=win_size[1], batch=batch |
| 37 | ) |
| 38 | right = rectangle.RectangleObject( |
| 39 | x=win_size[0] - border, y=0, width=border, height=win_size[1], batch=batch |
| 40 | ) |
| 41 | rectangles.extend([left, top, right]) |
| 42 | return rectangles |