Getpenwidth Function Example
Details
Action
A function that returns the current setting of the penwidth.
penwidth 3 - getpenwidth()
If the current penwidth is 1, each time this command is used, it switches the
width of the pen between thick (width 2) and thin, (width 1). You may switch
between different thicknesses by replacing 3 with a different number and
assigning a different starting number to the penwidth.