     return path
   }
 
-  // you are responsible for releasing the return CGPath
   internal func createCenteredLineWithRadius(radius: CGFloat, angle: CGFloat, offset: CGPoint) -> CGPathRef {
     let path = CGPathCreateMutable()
 


@IBDesignable final public class DynamicButton: UIButton {
  public enum Style: String {
    case CircleClose = "CircleClose"
    case CirclePlus  = "CirclePlus"
    case Close       = "Close"
    case Hamburger   = "Hamburger"
    case Plus        = "Plus"


    CGPathMoveToPoint(path, nil, centerPoint.x + offset.x + radius * c, centerPoint.y + offset.y + radius * s)
    CGPathAddLineToPoint(path, nil, centerPoint.x + offset.x - radius * c, centerPoint.y + offset.y - radius * s)

    return path
  }

  internal func createLineFromPoint(point: CGPoint, toPoint: CGPoint) -> CGPathRef {
    let path = CGPathCreateMutable()

    CGPathMoveToPoint(path, nil, offset.x + point.x, offset.y + point.y)
    CGPathAddLineToPoint(path, nil, offset.x + toPoint.x, offset.y + toPoint.y)

    return path
  }
