turtle.width()

turtle.width(width=None)

Parameters: width – a positive number

Set the line thickness to width or return it. If resizemode is set to “auto” and turtleshape is a polygon, that polygon is drawn with the same line thickness. If no argument is given, the current pensize is returned.

>>> turtle.pensize()
1
>>> turtle.pensize(10)   # from here on lines of width 10 are drawn
doc_python
2016-10-07 17:45:47
Comments
Leave a Comment

Please login to continue.