MCPcopy Index your code
hub / github.com/geekcomputers/Python / load_rectangles

Function load_rectangles

PongPong_Game/pong/load.py:30–42  ·  view source on GitHub ↗
(win_size: Tuple, border: float, batch=None)

Source from the content-addressed store, hash-verified

28
29
30def 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

Callers

nothing calls this directly

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected