The turtle.pen()
method (often confused with the turtle.Pen()
method) allows you to query and set a number of attributes, initially showing their defaults:
>>> turtle.pen()
{'shown': True, 'pendown': True, 'pencolor': 'black', 'fillcolor': 'black', 'pensize': 1,
'speed': 3, 'resizemode': 'noresize', 'stretchfactor': (1.0, 1.0),
'shearfactor': 0.0, 'outline': 1, 'tilt': 0.0}
>>>
Where 'shown' is an alternate term for 'visible'. Other defaults:
mode: 'standard' # default for turtle.mode()
colormode: 1.0 # default for turtle.colormode()
angle units: degrees # change with turtle.radians()
The first two are likely screen defaults but the last is set on a per turtle basis. I believe that this is incorrect:
canvas 950W by 800H
The default turtle screen size is 50% of your screen width and 75% of your screen height. The screen setup routine will accept fractions as well as pixels:
turtle.Screen().setup(0.25, 0.25)