             self.view.triangle(x1, y1, x2, y2, x3, y3)
         case .quad(let x1, let y1, let x2, let y2, let x3, let y3, let x4, let y4):
             self.view.quad(x1, y1, x2, y2, x3, y3, x4, y4)
+        case .curve(let cpx1, let cpy1, let x1, let y1, let x2, let y2, let cpx2, let cpy2):
+            self.view.curve(cpx1, cpy1, x1, y1, x2, y2, cpx2, cpy2)
         }
         self.record(UIGraphicsGetCurrentContext())
         exception.fulfill()

                        .addLineTo(CGPoint(x: 40, y: 50))
                        .closePath()
                        .cgPath
                )
            ),
            ]

    case arc(x: CGFloat, y: CGFloat, radius: CGFloat, start: CGFloat, stop: CGFloat)
    case triangle(x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, x3: CGFloat, y3: CGFloat)
    case quad(x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, x3: CGFloat, y3: CGFloat, x4: CGFloat, y4: CGFloat)
    case curve(cpx1: CGFloat, cpy1: CGFloat, x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, cpx2: CGFloat, cpy2: CGFloat)
}

class ProcessingViewDelegateShapeSpy: ProcessingViewDelegate {
