 
 @IBDesignable
 class CanvasView : NSView {
-    let paperColor = NSColor.whiteColor()
-    
     let canvasSize = (300,300)
     
     let shape : Shape = Shape(area: .PathArea(Path(segments:

                }
            }
            
            shape.render(context)

        }
    }

    }
    
    override func drawRect(dirtyRect: NSRect) {
        if let context = currentContext {
            
            let offsetX = (bounds.width-CGFloat(canvasSize.0))/2.0
            let offsetY = (bounds.height-CGFloat(canvasSize.1))/2.0
            CGContextTranslateCTM(context, offsetX, offsetY)

            CGContextSetRGBFillColor(context, 1, 1, 1, 1)
            CGContextFillRect(context, CGRect(x:0,y:0, width: CGFloat(canvasSize.0), height: CGFloat(canvasSize.1)))
            
            shape.render(context)
            
            CGContextSetRGBFillColor(context, 0.23, 0.85, 0.3, 1)
            CGContextSetRGBStrokeColor(context, 0.18, 0.5, 0.24, 1)
            CGContextSetLineWidth(context, 2)
