Python - turtle.clear() Last Updated : 17 Aug, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 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.clear() This function is used to delete the turtle's drawings from the screen. Do not move state and position of the turtle as well as drawings of other turtles are not affected. It doesn't require any argument. Syntax : turtle.clear() Parameters : None Returns : Nothing Below is the implementation of above method with some examples : Example 1 : python3 # import package import turtle # motion turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) # clear the drawing # and remain turtle # as it is turtle.clear() Output : Example 2 : python3 # import package import turtle # make a turtle object # and do some drawing t1 = turtle.Turtle() t1.up() t1.setpos(-100, 50) t1.down() t1.circle(50) # make a turtle object # and do some drawing t2 = turtle.Turtle() t2.up() t2.setpos(50, 50) t2.down() t2.circle(50) # make a turtle object # and do some drawing t3 = turtle.Turtle() t3.up() t3.setpos(50, -100) t3.down() t3.circle(50) # make a turtle object # and do some drawing t4 = turtle.Turtle() t4.up() t4.setpos(-100, -100) t4.down() t4.circle(50) # here we clear the work done by turtle # objects : t1 and t3 only but turtle # shape remain as it is t1.clear() t3.clear() Output : Comment More infoAdvertise with us Next Article turtle.clearstamp() method in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads Python - turtle.bye() 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.bye() This function is used to shut the turtle graphics window. It doesn't r 1 min read Python - turtle.done() 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.done() This function is used to starts event loop - calling Tkinter's main l 1 min read Python - turtle.exitonclick() 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.exitonclick() : This function is used to Go into mainloop until the mouse is 2 min read turtle.clearstamp() method in Python 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.clearstamp() The turtle.clearstamp() method is used to delete all or first/l 2 min read turtle.color() method in Python turtle.color() method is a function of the turtle module in Python used to change the color of the turtleâs pen and fill. It allows us to customize the appearance of shapes drawn by the turtle by specifying colors using color names, RGB values, or hex codes.Syntaxturtle.color(*args)The *args allows 3 min read Python - turtle.pencolor() method 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.pencolor() : This method is used to change the color of the ink of the turtl 2 min read Like