         
         if currentType == "sweep" { return }
         adjustButtonsForGradient("sweep")
-    }
-    
-    
-    
-    // MARK: Colors
-    
-    func randomColorsButtonPressed () {
-        
-        colors = randomColorArray(numberOfColors)
-    }
-    
-    
-    func minusColorsButtonPressed () {
-        
-        if numberOfColors == 2 { return }
-        if numberOfColors == 3 { disableButtonForTag(98) }
-        
-        numberOfColors = numberOfColors - 1
-        randomColorsButtonPressed()
-    }
-    
-    
-    func plusColorsButtonPressed () {
-        
-        if numberOfColors == 2 { enableButtonForTag(98) }
-        
-        numberOfColors = numberOfColors + 1
-        randomColorsButtonPressed()
     }
     
     

        
        return sqrt(pow(xDistance, 2) + pow(yDistance, 2))
    }
}

    }
    
    
    // MARK: Button and Label Makers
    
    func setupButton (#frame: CGRect, title: String, action: Selector) -> UIButton {
