Skip to content

Instantly share code, notes, and snippets.

@alcemirfernandes
Forked from KaueMaia/gist:d797bd998a389db986bf
Last active August 29, 2015 14:23
Show Gist options
  • Save alcemirfernandes/97ca5a4720359bab28d7 to your computer and use it in GitHub Desktop.
Save alcemirfernandes/97ca5a4720359bab28d7 to your computer and use it in GitHub Desktop.
__author__ = 'Kaue Maia'
import turtle
def coracao():
t1= turtle.Pen()
t1.color('red')
turtle.bgcolor('black')
t1.speed(0)
for ang in range(360):
t1.left(90-ang)
if ang <=180:
t1.forward(ang)
else:
t1.forward(360-ang)
print(t1.pos())
t1.home()
def heart():
t1 = turtle.Pen()
turtle.bgcolor('black')
def curvemove():
for i in range(200):
t1.right(1)
t1.forward(0.8)
t1.color('red','red')
t1.begin_fill()
t1.left(135)
t1.forward(106)
curvemove()
t1.left(130)
curvemove()
t1.forward(106)
t1.end_fill()
t1.home()
t1.left(-90)
turtle.done()
def heart4()
t1 = turtle.Pen()
turtle.bgcolor('black')
cor = ['red','yellow','orange','pink']
for i in range(4):
def curvemove():
for i in range(200):
t1.right(1)
t1.forward(0.8)
t1.color(cor[i],cor[i])
t1.begin_fill()
t1.left((90*i))
t1.left(135)
t1.forward(106)
curvemove()
t1.left(130)
curvemove()
t1.forward(106)
t1.end_fill()
t1.home()
t1.left(180)
turtle.done()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment