

turtle.Screen().bgcolor(“light blue”) is used give the background color to the window.Here we give the color to the background of the window from which our window looks attractive and users want to draw the shapes and pictures inside this window. In this section, we will learn about how to give the background color to a window in a python turtle.Ĭolor is used to make the object beautiful and attractive. Read: How to Draw Flower in Python Turtle Python turtle window background color

Ws.setup(width=0.333, height=0.333, startx=offset, starty=offset)Īfter running the above code, we get the following output in which we can see that the window move from starting position to the ending position.

We can run different turtle commands and also get the running output on the window.

We can also resize the size of the window by applying a simple method. Here TurtleScreen class defines the window. Python turtle window is a place where a turtle can draw different shapes and pictures. In this section, we will learn about how to create a turtle window in a python turtle.
