Changing cursor to predefined shapes

The shape() function is used to set the shape of the cursor. The pre-defined shapes include turtle, arrow, circle, square and triangle
 

Python3




import turtle
 
# turtle object
c_turtle = turtle.Turtle()
   
# changing the cursor
# shape to circle
c_turtle.shape('circle')


Output :
 

How to Create custom Turtle shapes in Python?

In Turtle, by default, we have an arrowhead-shaped cursor for drawing on the canvas. This can be changed to some other predefined shape or we can also create a custom shape and register it under a name. Not just that, we can even use gif format images to replace our cursor.

Similar Reads

Changing cursor to predefined shapes

The shape() function is used to set the shape of the cursor. The pre-defined shapes include turtle, arrow, circle, square and triangle....

Registering new shapes

...

Using images for Turtle cursor

The turtle module has register_shape() function for registering custom shapes....