src/swipl-devel/packages/xpce/man/refmanual/md/pen.md

class pen {#class-pen}

A pen holds the stroke parameters used by graphicals when drawing lines and borders: line thickness, dash pattern (texture) and stroke colour. Pens are normally manipulated indirectly through the graphical->pen, graphical->texture and graphical->colour slots rather than created as explicit objects, but they may be constructed and passed where a pen-valued argument is expected.

@see class graphical @see class colour @see graphical->pen

Instance variables {#class-pen-instvars}

Send methods {#class-pen-send}

Get methods {#class-pen-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.