 				UIRectFill(temp)
 			}
 		}
+		
+//		[UIBezierPath bezierPathWithRoundedRect:imageView.bounds
+//			cornerRadius:10.0] addClip];
+		
+		
 		
 		var image: UIImage = UIGraphicsGetImageFromCurrentImageContext()
 		UIGraphicsEndImageContext()

	override func layoutSubviews() {
		super.layoutSubviews()
		
		let image = getImageWithColor(UIColor.yellowColor(), size: self.frame.size)
	}
	
	func getImageWithColor(color: UIColor, size: CGSize) -> UIImage {
		var rect = CGRectMake(0, 0, size.width, size.height)
		UIGraphicsBeginImageContextWithOptions(size, false, 0)
		
		if direction == .Horizontal {
			for var x: Int = 0; x < Int(self.frame.size.width); ++x {

	private var color: UIColor!
	private var currentSelectionY: CGFloat = 0.0
	private var currentSelectionX: CGFloat = 0.0
	private var hueImage: UIImage!
	private var roundedRectPath: UIBezierPath!
	
	// Initialization
