Tests examples for the miniworldmaker engine https://www.miniworldmaker.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
miniworldmaker_cookbook/snippets/7 Processing/713_draw_circles_with_objec...

19 lines
439 B

import miniworldmaker
my_board = miniworldmaker.Board(800, 600)
my_board.fill_color = (255,255,255,100)
my_board.stroke_color = (0,0,0,20)
@my_board.register
def act(self):
c = miniworldmaker.Circle(self.get_mouse_position(), 80)
@my_board.register
def on_mouse_left(self, mouse_pos):
self.color = (200, 100, 100, 50)
@my_board.register
def on_mouse_right(self, mouse_pos):
self.color = (255, 255, 255, 50)
my_board.run()