Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Figure:
- def __init__(self, x, y, f_color, b_color):
- self.x = x
- self.y = y
- self.fill_color = f_color
- self.border_color = b_color
- def show(self):
- pass
- def hide(self):
- pass
- def move(self, delta_x, delta_y):
- self.show()
- pause(100)
- self.hide()
- self.x += delta_x
- self.y += delta_y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement