         
         layer.addAnimation(fadeOut, forKey: "fade")
     }
-    
 }

        UIGraphicsBeginImageContext(frame.size)
        let imageContext: CGContextRef = UIGraphicsGetCurrentContext()
        CGContextDrawRadialGradient(imageContext,
            gradient,
            startPoint,
            0.0,
            endPoint,
            frame.size.width/2,
            0)
        let resultImage: UIImage = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        

// MARK: - Gradients
extension ENMCircle {
    
    func generateRadialWithRed(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIImage {
        var gradient: CGGradientRef?
        var colorSpace: CGColorSpaceRef?
        var numberOfLocation: size_t = 6
        let locations: CGFloat[] = [0.0, 0.2, 0.4, 0.6, 0.8, 1.0]
        let components: CGFloat[] = [0.0,  0.0,    0.0,    1.0,
                                    red,   green,  blue,   1.0,
                                    red,   green,  blue,   0.8,
                                    red,   green,  blue,   0.6,
                                    red,   green,  blue,   0.2,
                                    red,   green,  blue,   0.0]
        
        colorSpace = CGColorSpaceCreateDeviceRGB()
        gradient = CGGradientCreateWithColorComponents(colorSpace,
                                                       components,
                                                       locations,
                                                       numberOfLocation)
        
        var startPoint: CGPoint = CGPointMake(frame.size.width/2, frame.size.height/2)
        var endPoint: CGPoint = CGPointMake(frame.size.width/2, frame.size.height/2)
