 //: Playground - noun: a place where people can play
 
 import UIKit
-import XCPlayground
+import PlaygroundSupport
 
 extension UIColor {
     

    private func startColorAnimation() {
        let color      = CAKeyframeAnimation(keyPath: "strokeColor")
        color.duration = 10.0
        color.values   = [UIColor(hex: 0xf19b00, alpha: 1.0).CGColor]
        color.calculationMode = kCAAnimationPaced
        color.repeatCount     = Float.infinity
        circleOutlineLayer.addAnimation(color, forKey: "color")
    }
    
    private func startRotatingAnimation() {
        let rotation            = CABasicAnimation(keyPath: "transform.rotation.z")
        rotation.toValue        = M_PI*6.0
        rotation.duration       = (duration - AfterpartDuration) * 0.77
        rotation.cumulative     = true
        rotation.additive       = true
        rotation.removedOnCompletion = false
        rotation.fillMode       = kCAFillModeForwards
        rotation.timingFunction = CAMediaTimingFunction(controlPoints: 0.39, 0.575, 0.565, 1.0)
        circleOutlineLayer.addAnimation(rotation, forKey: "rotation")
    }
    
    private func startStrokeAnimation() {

        fadeOutAnimation.toValue  = 0
        fadeOutAnimation.duration = AfterpartDuration
        fadeOutAnimation.fillMode = kCAFillModeForwards
        fadeOutAnimation.isRemovedOnCompletion = false
        fadeOutAnimation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseIn)
        circleOutlineLayer.add(fadeOutAnimation, forKey: "fadeOut")
    }
    
    private func startFillCircleAnimation() {
