Turtle Colors
- Named Colors See the names
- Hex Code - use a color picker
- Color Tuple r,g,b each one goes from 0-1
- color
- pencolor
- fillcolor
- s.bgcolor
- begin_fill + end_fill
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()