Q. Turtle - JulTob/Python GitHub Wiki
import turtle
import turtle
# Screen
screen = turtle.Screen()
screen.bgcolor("yellow")
# Back Ground COLOR
# Create new turtles
x = turtle.Turtle()
x.color("black")
y = turtle.Turtle()
y.color("blue")
z = turtle.Turtle()
z.color("green")
# Trace
turtle.up()
turtle.penup() # Pen up, it does not write
turtle.down()
turtle.pendown() # Pen down, it does write. Default
turtle.pensize(3)
# Speed
speed(0) # Immediate
speed(1) # Slowest
speed(10) # try it
# Rotate
turtle.right(120) # Turns right 120ª
turtle.left(90) # Turns left 90ª
x.rt(10) # Right Turn 10º
# Move forward
turtle.forward(50) # Forward 50 steps
x.forward(300)
y.forward(300)
z.forward(300)
# Turtle's aspect
turtle.shape("turtle")
turtle.color("red","back") # Red outline and black inline
turtle.hideturtle()
turtle.showturtle()
# Area filling
turtle.begin_fill() # Fills the shape
turtle.end_fill() # Stops filling
# Set Head direction
x.seth(0)
y.seth(360/3)
z.seth(2*360/3)
turtle.exitonclick()
Valid colors
color = ["black", "blue", "green", "red"]
x.color(color)