         }
     }
 
-    return widthVal
+    if (strokeHash["rad"] == nil) {
+        strokeHash["rad"] = strokeHash["size"]! + 4
+    }
+
+    return strokeHash
 }
 
 

    return NSColor(red: colorHash["r"]!, green: colorHash["g"]!, blue: colorHash["b"]!, alpha: colorHash["a"]!)
}

func parseWidth(args: Array<String>) -> CGFloat
{
    var widthVal: CGFloat = 4

    for arg in args {
        if ((arg.characters.indexOf(":")) != nil) {

    override func drawRect(rect: NSRect)
    {
        colorclear.setFill()
        let bpath:NSBezierPath = NSBezierPath(roundedRect: rect, xRadius:lineRadius, yRadius:lineRadius)

        borderColor.set()
        bpath.lineWidth = lineWidth
