Cody Bable

Generation

generate functionFri, 28 Apr 2023

create a function to redraw the drawing in turtle from user mouse clicks

def draw(x, y, r, g, b): turtle.goto(x, y) turtle.pencolor(r, g, b) turtle.pendown() turtle.circle(10) turtle.penup() turtle.onscreenclick(draw)

Questions about programming?Chat with your personal AI assistant