rjqnrdl
Python
import turtle
import random
def screenLeftClick(x, y):
global r, g, b
turtle.pencolor((r, g, b))
turtle.pendown()
turtle.goto(x, y)
def screenRightClick(x,y):
turtle.penup()
turtle.goto(x,y)
def screenMidClick(x,y):
global r, g, b
tSize = random.randrange(1,10)
turtle.shapesize(tSize)
r=random.random()
g=random.random()
b=random.random()
pSize = 10
r, g, b = 0.0, 0.0, 0.0
turtle.title('거북이로 그림그리기')
turtle.shape('turtle')
turtle.pensize(pSize)
turtle.onescreenclick(screenLeftClick)
turtle.onescreenclick(screenRightClick)
turtle.onescreenclick(screenMidClick)
turtle.done()
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.