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)

Want to kickstart your project?Use the new AI Studio to create your code