Changing the Screen Color

Changing the Screen Color

  • Turtle always opens up a screen with a white background. However, you can change the color of the screen at any time using the following command: 

Source Code:

#Follow - Programmerfect

import turtle
turtle.bgcolor("blue")
 

Output:


Example 2

Source Code:
#Follow - Programmerfect

import turtle
turtle.bgcolor("red")
 

Note : You can replace "green" with any other color. Try "black" or "yellow".



Recommended Posts: 

 

 

 

Comments