turtle.bgcolor(*args)
Parameters: | args – a color string or three numbers in the range 0..colormode or a 3-tuple of such numbers |
---|
Set or return background color of the TurtleScreen.
1 2 3 4 5 6 | >>> screen.bgcolor( "orange" ) >>> screen.bgcolor() 'orange' >>> screen.bgcolor( "#800080" ) >>> screen.bgcolor() (128.0, 0.0, 128.0) |
Please login to continue.