Turtle Colors



examples/turtle/change_turtle_color.py
import turtle

t = turtle.getturtle()

t.forward(50)

t.color("blue")
t.forward(50)

t.color("green", "yellow")
t.forward(50)

t.pencolor("purple")
t.fillcolor("orange")
t.forward(50)


turtle.exitonclick()

examples/turtle/fill_shape_by_color.py
import turtle

t = turtle.getturtle()

t.fillcolor("orange")

t.begin_fill()
t.circle(30)

t.end_fill()

turtle.exitonclick()