Open In App

turtle.begin_fill() function in Python

Last Updated : 22 Aug, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

turtle.begin_fill() function mark the starting point for filling a shape. Any drawing commands executed after this call (until turtle.end_fill()) will be filled with the currently set fill color.

Syntax :

turtle.begin_fill()

Parameters: This function does not take any parameters.

Return Value: This function does not return anything. It only changes the turtle’s state to fill mode.

Example:

Python
import turtle

turtle.up()
turtle.goto(0, -30)
turtle.down()
turtle.color("yellow")

turtle.begin_fill()
turtle.circle(60)
turtle.end_fill()

turtle.hideturtle()
turtle.done()

 

Output :

Explanation:

  • turtle.color("yellow") sets the outline and fill color to yellow.
  • turtle.begin_fill() starts the filling process.
  • turtle.circle(60) draws a circle of radius 60.
  • turtle.end_fill() completes the fill and colors the shape.
  • turtle.done() keeps the drawing window open.

Article Tags :
Practice Tags :

Similar Reads