"""
import turtle
import random
def screenLeftClick(x,y):
    global r,g,b
    turtle.penup()
    turtle.color(r,g,b)
    turtle.stamp()
    turtle.goto(x,y)
    tSize=random.randrange(1,10)
    turtle.shapesize(tSize)
    r=random.random()
    g=random.random()
    b=random.random()
r,g,b=0.0,0.0,0.0
turtle.title('거북이로 도장찍기')
turtle.shape('turtle')
turtle.onscreenclick(screenLeftClick,1)
turtle.done()
"""
import turtle
import random
def screenLeftClick(x,y):
    global r,g,b
    turtle.penup()
    turtle.goto(x,y)
    turtle.shape('turtle')
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.shapesize(2)
    pSize=10
    turtle.pensize(pSize)
    turtle.circle(50)
    turtle.penup()
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.goto(x+70,y+200)
    turtle.pendown()
    turtle.right(90)
    turtle.forward(300)
    turtle.penup()
    turtle.goto(x+200,y+110)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.circle(25)
    turtle.penup()
    turtle.goto(x+250,y+122)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.left(90)
    turtle.forward(25)
    turtle.penup()
    turtle.goto(x+250,y+110)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.forward(25)
    turtle.penup()
    turtle.goto(x+275,y+200)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.right(90)
    turtle.forward(200)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))    
    turtle.goto(x+263,y)
    turtle.circle(25)
    turtle.penup()
    turtle.goto(x+400,y+110)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.left(30)
    turtle.forward(70)
    turtle.penup()
    turtle.goto(x+400,y+110)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()    
    turtle.right(70)
    turtle.forward(70)
    turtle.penup()
    turtle.goto(x+420,y+110)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.left(130)
    turtle.forward(50)
    turtle.penup()
    turtle.goto(x+470,y+150)
    r=random.random()
    g=random.random()
    b=random.random()
    turtle.pencolor((r,g,b))
    turtle.pendown()
    turtle.right(90)
    turtle.forward(200)
    turtle.penup()
    turtle.goto(x+450,y-50)
    turtle.pendown()
    turtle.forward(40)
    turtle.left(90)
    turtle.forward(40)
    turtle.left(90)
    turtle.forward(40)
    turtle.left(90)
    turtle.penup()
    turtle.goto(x+490,y-70)
    turtle.pendown()
    turtle.forward(40)
turtle.title('거북이로 이름쓰기')
turtle.shape('turtle')
turtle.onscreenclick(screenLeftClick,1)
turtle.done()

