mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
op/paint: make documentation of Line clearer
The movement is not to an absolute coordinate but by a delta relative to the current position of the pen.
This commit is contained in:
+3
-3
@@ -65,9 +65,9 @@ func (p *Path) end() {
|
|||||||
p.contour++
|
p.contour++
|
||||||
}
|
}
|
||||||
|
|
||||||
// Line records a line from the pen to end.
|
// Line moves the pen by the amount specified by delta, recording a line.
|
||||||
func (p *Path) Line(to f32.Point) {
|
func (p *Path) Line(delta f32.Point) {
|
||||||
to = to.Add(p.pen)
|
to := delta.Add(p.pen)
|
||||||
p.lineTo(to)
|
p.lineTo(to)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user