 
 public class HuePicker: UIView {
     
-    struct Pixel {
-        var a:UInt8 = 255
-        var r:UInt8
-        var g:UInt8
-        var b:UInt8
-        init(a:UInt8, r:UInt8, g:UInt8, b:UInt8) {
-            self.a = a
-            self.r = r
-            self.g = g
-            self.b = b
-        }
-    }
     var _h:UInt = 40
     public var h:UInt {
         set(value) {

        }
    }
    var image:UIImage?
    private var data:[Pixel]?
    private var currentPoint = CGPointZero
    private var handleRect = CGRectZero
    public var handleColor:UIColor = UIColor.blackColor()

        var height = UInt(bounds.height)
        
        if  data == nil {
            data = [UInt8](count: Int(width * height) * 4, repeatedValue: UInt8(255))
        }

        var p = 0.0
