Draw a steel pipe section in paperjs
. It's only a circle with a void circle inside. Just like this:
So far I have tried joins, intersections, subtractions, adds, but I am not able to achieve that simple task.
.subtract()
is the correct method. Found it in paperjs.org examples
const outer = new paper.Path.Circle(position, diameter/2)
const inner = new paper.Path.Circle(position, diameter/2-thickness)
pipe_section = outer.subtract(inner)