MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / draw

Method draw

Lazy_Pong/pong.py:138–141  ·  view source on GitHub ↗
(self, display: pygame.Surface)

Source from the content-addressed store, hash-verified

136 return (self.speed_x, self.speed_y)
137
138 def draw(self, display: pygame.Surface) -> None:
139 self.surface = display
140 pygame.draw.circle(self.surface, self.color,
141 (self.center_x, self.center_y), self.radius)
142
143 def reset(self) -> None:
144 self.speed_x = 0

Callers 3

resetMethod · 0.95
run_gameMethod · 0.45
update_plotMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected