         
         index = (index + 1) % colors.count
         
-        lastTimestamp = 0.0
         factor = 0.0
         
         self.displayLink.paused = false

    
    var index: Int = 0
    
    
    
    
    lazy var displayLink : CADisplayLink = {
        let displayLink : CADisplayLink = CADisplayLink(target: self, selector: "screenUpdated:")
        displayLink.addToRunLoop(NSRunLoop.mainRunLoop(), forMode: NSRunLoopCommonModes)

        
    }
    
    var factor: CGFloat = 1.0
    
    func screenUpdated(displayLink : CADisplayLink) {
        
        self.factor += CGFloat(displayLink.duration)
        
        if(self.factor > 1.0) {
            
