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.
 
 

22 lines
426 B

from miniworldmaker import *
class MyBoard(PixelBoard):
def on_setup(self):
self.pointlist = []
def on_mouse_left(self, pos):
self.pointlist.append(self.get_mouse_position())
def on_mouse_right(self, pos):
p = Polygon(pointlist=self.pointlist)
print(self.pointlist)
p.color=(255, 255, 0, 255)
self.pointlist = []
my_board = MyBoard(800, 600)
my_board.run()