     
     func chooseNextColor()
     {
-        var colorType = ColorFade.RANDOM
+        var colorType = ColorFade.DIRECTION
         switch colorType
         {
         case .RANDOM:

                nextColor = colorRGB([randflt(), randflt(), randflt()])
            }
            rgbColor = thisColor.fadeTo(nextColor, fade:colorFade/100.0)
        }
    }
        

    func height() -> Int { return Int(bounds.size.height) }
    func randint(n: Int) -> Int { return Int(arc4random_uniform(UInt32(n)+1)) }
    func randflt() -> Float { return Float(arc4random()) / Float(UINT32_MAX) }
    func rest(v:Float) -> Float { return v-floor(v) }
    func clamp(v:Float, low:Float, high:Float) -> Float { return max(low, min(v, high)) }
    func colorRGB(rgb:[Float]) -> NSColor { return NSColor(red: CGFloat(rgb[0]), green:CGFloat(rgb[1]), blue:CGFloat(rgb[2]), alpha:1) }
}

