Beispiel #1
0
def mousePressed():
    if world.getBody(mouseX, mouseY):
        return
    global poly
    poly = FPoly()
    poly.setStrokeWeight(3)
    poly.setFill(120, 30, 90)
    poly.setDensity(10)
    poly.setRestitution(0.5)
    poly.vertex(mouseX, mouseY)
def mousePressed():
    if world.getBody(mouseX, mouseY):
        return
    global poly
    poly = FPoly()
    poly.setStrokeWeight(3)
    poly.setFill(120, 30, 90)
    poly.setDensity(10)
    poly.setRestitution(0.5)
    poly.vertex(mouseX, mouseY)