From 3fe0f62fa319b4133f888e3c6d25d7ff78a42ca5 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Thu, 27 Aug 2020 11:55:00 +0000 Subject: [PATCH] op/clip: export Path's current pen position Signed-off-by: Sebastien Binet --- op/clip/clip.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/op/clip/clip.go b/op/clip/clip.go index 04471349..75478523 100644 --- a/op/clip/clip.go +++ b/op/clip/clip.go @@ -28,6 +28,9 @@ type Path struct { start f32.Point } +// Pos returns the current pen position. +func (p *Path) Pos() f32.Point { return p.pen } + // Op sets the current clip to the intersection of // the existing clip with this clip. //