Open In App

turtle.end_fill() function in Python

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

The turtle.end_fill() function marks the end of the fill process. It is used after turtle.begin_fill() and drawing commands to fill the enclosed shape with the current fill color.

Syntax :

turtle.end_fill()

Parameters: This function does not take any parameters.

Return Value: This function does not return anything. It simply fills the shape drawn after begin_fill().

Example:

Python
import turtle

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

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

turtle.hideturtle()
turtle.done()

Output :

Parameter:

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

Article Tags :
Practice Tags :

Similar Reads