Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python cube turtle

from turtle import *

t = Turtle()

def startUp():
    t.color("white")
    t.goto(-100,-100)

def makeCubeBones():
    t.color("black")
    t.pensize(10)
    t.forward(150)
    t.left(90)
    t.forward(150)
    t.left(90)
    t.forward(150)
    t.left(90)
    t.forward(150)
    t.left(180)
    t.forward(150)
    t.left(-45)
    t.forward(50)
    t.left(-45)
    t.forward(150)
    t.right(90)
    t.forward(150)
    t.right(45)
    t.forward(50)
    t.right(45*3)
    t.forward(150)
    t.right(45)
    t.forward(50)

startUp()
makeCubeBones()

mainloop()
 
PREVIOUS NEXT
Tagged: #python #cube #turtle
ADD COMMENT
Topic
Name
1+1 =