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:
aarzilli
2019-11-05 14:04:39 +01:00
committed by Elias Naur
parent 60e4cca934
commit 299e966816
+3 -3
View File
@@ -65,9 +65,9 @@ func (p *Path) end() {
p.contour++
}
// Line records a line from the pen to end.
func (p *Path) Line(to f32.Point) {
to = to.Add(p.pen)
// Line moves the pen by the amount specified by delta, recording a line.
func (p *Path) Line(delta f32.Point) {
to := delta.Add(p.pen)
p.lineTo(to)
}