Ask coding questions

← Back to all posts
How do I change the Background color with Turtle in Python?
nubiancoder2

I tried using the following lines of code but to no avail.. Someone please help

turtle.bgcolor("blue")
turtle.backgroundcolor("blue")

Answered by Zavexeon [earned 5 cycles]
View Answer
Voters
Spacekid360
chinaaphrnchuut
AlexDunford1
MayuriJoshi
AndrewZhivotvor
nubiancoder2
Comments
hotnewtop
Zavexeon

Heya, moved this post to "Ask" for yah. The "Learn" board is for tutorials and the like. Thanks. :3

nubiancoder2

Hey I'm late but Thank you
@Zavexeon

mendonaarav

@nubiancoder2 Try this:Screen=turtle.Screen()
canvas=turtle.Screen()
canvas.bgcolor("blue")

mypython1

@mendonaarav it works