Lesson 14 of 51 · Colors & Styling
Pen Size (pensize)
pensize(n) sets the thickness of the drawn lines.
Python
from turtle import *
bgcolor("black")
color("cyan")
# pen size
pensize(4)
for i in range(4):
forward(100)
right(90)
done()Output

1
Thickness in Pixels
pensize(1) is thin, pensize(10) is thick.