paperjs-offset icon indicating copy to clipboard operation
paperjs-offset copied to clipboard

Offset error

Open hxgdzyuyi opened this issue 2 years ago • 0 comments

image

var p = new paper.Path({fillColor: 'rgb(191, 91, 91, 0.5)', strokeColor: 'black' });

points.forEach(([x, y]) => {
  p.add(new paper.Point(x+ 60, y + 200));
})

p.closed = true;

//let r = new paper.Path.Rectangle({ point: [100, 100], size: [80, 80], fillColor: 'rgb(191, 91, 91, 0.5)', strokeColor: 'black' })
PaperOffset.offset(p, 10, { cap: 'round' })
p.bringToFront()

hxgdzyuyi avatar Apr 18 '22 02:04 hxgdzyuyi