 }
 
 extension PastelView: CAAnimationDelegate {
-    func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
+    public func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
         if flag {
             gradient.colors = currentGradientSet()
             animateGradient()

    }
    */
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
    }
    
    func startAnimation() {
        gradient.removeAllAnimations()
        setup()
        animateGradient()

                colors[(currentGradient + 1) % colors.count].cgColor]
    }
    
    public func setColors(colors: [UIColor]) {
        guard colors.count > 0 else { return }
        self.colors = colors
    }
    
    public func addColor(color: UIColor) {
        self.colors.append(color)
    }
    
