def draw(canvas):
    colorplane(0, 0, canvas.width, canvas.height, lighter(color(0.14, 0.13, 0.18)), color(0.07, 0.06, 0.14), color(0.14, 0.2, 0.18), color(0.07, 0.06, 0.14))
    global plant
    plant = grow(plant)
    buffer.push()
    for root in plant:
        root.draw()
        root.step = (canvas.mouse.relative_x * 60)
        root.radius = (canvas.mouse.relative_y * 30)
    buffer.pop()
    if (((canvas.frame % 2) == 0) and (not canvas.mouse.pressed)):
        buffer.texture = transparent(buffer.texture, 0.9).texture
    img = buffer.texture
    image(dropshadow(img, alpha=1.0, amount=1), 0, (- 50), width=canvas.width, height=(canvas.height + 50))
    img = stretch(img, 0.2, 0.1, radius=0.75, zoom=(0.4 - (cos((canvas.frame * 0.01)) * 0.4)))
    image(img, 0, 0, width=canvas.width, height=canvas.height)
def draw(canvas):
    colorplane(0, 0, canvas.width, canvas.height, lighter(color(0.14, 0.13, 0.18)), color(0.07, 0.06, 0.14), color(0.14, 0.2, 0.18), color(0.07, 0.06, 0.14))
    global plant
    plant = grow(plant)
    buffer.push()
    for root in plant:
        root.draw()
        root.step = (canvas.mouse.relative_x * 60)
        root.radius = (canvas.mouse.relative_y * 30)
    buffer.pop()
    if (((canvas.frame % 2) == 0) and (not canvas.mouse.pressed)):
        buffer.texture = transparent(buffer.texture, 0.9).texture
    img = buffer.texture
    image(dropshadow(img, alpha=1.0, amount=1), 0, (- 50), width=canvas.width, height=(canvas.height + 50))
    img = stretch(img, 0.2, 0.1, radius=0.75, zoom=(0.4 - (cos((canvas.frame * 0.01)) * 0.4)))
    image(img, 0, 0, width=canvas.width, height=canvas.height)