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

class path {#class-path}

A path is a line going through a set of points. There are two kinds of paths:

| poly   | Straight line segments connect the points  |
| smooth | A smooth (curved) line connects the points |

The line of a path has a ->texture and a ->pen (thickness). The first and last point of the path may be connected (->closed) and the interior of the path may be filled with an image object using ->fill. Class path is a subclass of class joint and therefore may have ->arrows attached.

Paths can be used for numerous purposes:

Instance variables {#class-path-instvars}

Send methods {#class-path-send}

Get methods {#class-path-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.