turtle.begin_fill() function in Python
Last Updated :
29 Jun, 2021
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
turtle.begin_fill()
This method is used to call just before drawing a shape to be filled. It doesn’t take any argument.
Syntax :
turtle.begin_fill()
Below is the implementation of the above method with an example :
Example:
Python3
import turtle
turtle.up()
turtle.goto( 0 , - 30 )
turtle.down()
turtle.color( "yellow" )
turtle.begin_fill()
turtle.circle( 60 )
turtle.end_fill()
turtle.hideturtle()
|
Output :
Share your thoughts in the comments
Please Login to comment...