Paper.js zigzag path
问题 Im using paper.js and attempting to created function to create zizag paths. I have divided the path up in to segments, using getPointAt and now trying ad the zigzag by adding the normals sketch and code. Thanks in advance code: var zag= new Path() var start= new Point(view.center) var end= start.add(300,200) zag.add(start, end) zag.strokeColor="black" var count= 20, length= zag.length; for(var i= 0; i<count; i++){ var offset= i / count * length var normal= zag.getNormalAt(offset) * 30 zag.add