Ask coding questions

← Back to all posts
how do i fill a shape with colour?
epicpumpkin (3)

it tells me i cannot do it, but i have done so before and cannot remember how to.

Comments
hotnewtop
malvoliothegood (851)
import turtle

t = turtle.Turtle()
t.speed(0)
t.fillcolor("blue")

t.begin_fill()
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.end_fill()