set-cap in pen%

Sets the pen cap style (Windows unsmoothed, X unsmoothed, all smoothing). See get-cap for information about cap styles.

A pen cannot be modified if it was obtained from a pen-list% or while it is selected into a drawing context.