Ask coding questions

← Back to all posts
Is it possible to set bgcolor
h
CommandYeeter (0)

Guys is it possibel to set the bgcolor of turtle graphics?If so, how?

Comments
hotnewtop
RYANTADIPARTHI (6009)

Solution

import turtle

turtle = turtle.Turtle()
turtle.bgcolor("blue")

like that.
That should work

Chocolate16 (36)

you need to add this:
bgcolor("red")

Chocolate16 (36)

so... who's answer will be mark as "correct"? @CommandYeeter