Sets the current pen for this object. Note that the current pen does not affect text drawing; see also set-text-foreground.
While a pen is selected into a drawing context, it cannot be modified.