   context.fillStyle = "magenta"
   context.fill()
 
-rectLines = (target) ->
+pathPoints (target) ->
   width = target.naturalWidth
   height = target.naturalHeight
 

              end: path[i+1]
            drawLine(context, line, "#0F0")
            i += 1

    name: "Cut"
    mousedown: (e) ->

    Point(width, height)
    Point(0, height)
  ].map(matrix.transformPoint.bind(matrix))

rectLines = (target) ->
  points = pathPoints(target)

  points.map (currentPoint, i) ->
    nextPoint = points[i + 1] or points[0]
