Lesson 15 of 51 · Colors & Styling
Filling Shapes (begin_fill)
Fill closed shapes with color using begin_fill() and end_fill().
Python
from turtle import *
bgcolor("black")
color("gold")
pensize(3)
begin_fill()
for i in range(4):
forward(150)
right(90)
end_fill()
done()Output

1
The Pattern
Call begin_fill(), draw the shape, then call end_fill(). Turtle fills the enclosed area.