MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / add_random_balls

Method add_random_balls

DemoPrograms/Demo_Graph_Ball_Game.py:56–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.space.add(ground_shape)
55
56 def add_random_balls(self):
57 for i in range(1, 200):
58 x = random.randint(0, 600)
59 y = random.randint(0, 400)
60 r = random.randint(1, 10)
61 self.add_ball(x, y, r)
62
63 def add_ball(self, x, y, r, fill_color='black', line_color='red'):
64 ball = Ball(x, y, r, self.graph_elem)

Callers

nothing calls this directly

Calls 1

add_ballMethod · 0.95

Tested by

no test coverage detected