 
     return HSV(h:h, s:s, v:v)
 }
+
+

}

extension RGB : Equatable {
    
}

public func ==(lhs: RGB, rhs: RGB) -> Bool {
    return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b
}

// TODO: One option? Or just add alpha to colors


import CoreGraphics

// MARK: RGB

public struct RGB {
    public var r:CGFloat = 0.0
    public var g:CGFloat = 0.0
    public var b:CGFloat = 0.0

    public init(r:CGFloat = 0.0, g:CGFloat = 0.0, b:CGFloat = 0.0) {
        (self.r, self.g, self.b) = (r,g,b)
    }

    public init(tuple:(r:CGFloat, g:CGFloat, b:CGFloat)) {
        (self.r, self.g, self.b) = tuple
    }
