Ask coding questions

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

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

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

Answered by Zavexeon (1188) [earned 5 cycles]
View Answer
Comments
hotnewtop
Zavexeon (1188)

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

nubiancoder2 (2)

Hey I'm late but Thank you
@Zavexeon

mendonaarav (4)

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