diff --git a/docs/picovector.md b/docs/picovector.md index 60734bf..f0427c0 100644 --- a/docs/picovector.md +++ b/docs/picovector.md @@ -93,7 +93,8 @@ my_shape.path((10, 0), (0, 10), (20, 10)) * `path((x, y), (x2, y2), (x3, y3), ...)` A path is simply an arbitrary list of points that produce a complete closed -shape. It's ideal for drawing complex shapes such as logos or icons. +shape. It's ideal for drawing complex shapes such as logos or icons. The +shape will be filled. If you have a list of points you can use Python's spread operator to pass it into `path`, eg: @@ -104,6 +105,14 @@ my_shape = Polygon() my_shape.path(*my_points) ``` +### Line + +* `line(x1, y1, x2, y2, thickness)` + +Creates a single line from one point to the other, drawn at the specified +thickness. This is useful if you want to draw a path but do not want it to +be filled. + ### Rectangle * `rectangle(x, y, w, h, corners=(r1, r2, r3, r4), stroke=0)`