def draw():
    background(255)
    if frameCount % 50 == 0:
        sz = random(30, 60)
        b = FCircle(sz)
        b.setPosition(random(0+30, width-30), 50)
        b.setVelocity(0, 100)
        b.setRestitution(0.7)
        b.setDamping(0.01)
        b.setNoStroke()
        b.setFill(200, 30, 90)
        world.add(b)
    world.draw()
    world.step()
dataset/ETHPy150Open jdf/processing.py/examples.py/Fisica/contact_resize.py/draw/original