Skip to content

Commit ca794d5

Browse files
authored
Merge pull request #103 from ahnlak/main
Improved PicoVector documentation
2 parents 95f8b4a + 5a0d0f2 commit ca794d5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/picovector.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ my_shape.path((10, 0), (0, 10), (20, 10))
9393
* `path((x, y), (x2, y2), (x3, y3), ...)`
9494

9595
A path is simply an arbitrary list of points that produce a complete closed
96-
shape. It's ideal for drawing complex shapes such as logos or icons.
96+
shape. It's ideal for drawing complex shapes such as logos or icons. The
97+
shape will be filled.
9798

9899
If you have a list of points you can use Python's spread operator to pass it
99100
into `path`, eg:
@@ -104,6 +105,14 @@ my_shape = Polygon()
104105
my_shape.path(*my_points)
105106
```
106107

108+
### Line
109+
110+
* `line(x1, y1, x2, y2, thickness)`
111+
112+
Creates a single line from one point to the other, drawn at the specified
113+
thickness. This is useful if you want to draw a path but do not want it to
114+
be filled.
115+
107116
### Rectangle
108117

109118
* `rectangle(x, y, w, h, corners=(r1, r2, r3, r4), stroke=0)`

0 commit comments

Comments
 (0)