Skip to content
Sign upLog in
← Back to Community

How do I change the Background color with Turtle in Python?

Profile icon
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
Profile icon
BaronPollard1
Profile icon
HediyehKhaleeli
Profile icon
AlvinJanveden
Profile icon
FrancescaAureus
Profile icon
MertAltin1
Profile icon
ChloeJhanelleGa
Profile icon
MaryStewart2
Profile icon
MatthewBarba
Profile icon
Spacekid360
Profile icon
chinaaphrnchuut
Comments
hotnewtop
Profile icon
Zavexeon

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

Profile icon
nubiancoder2

Hey I'm late but Thank you


@Zavexeon

Profile icon
mendonaarav

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

Profile icon
mypython1

@mendonaarav
it works