iphone Programming Glossary: greenin
polaroid filter from UIImage http://stackoverflow.com/questions/5590216/polaroid-filter-from-uiimage g double b if r g if r b return r else return b else if g b return g else return b void rgbToHsv double redIn double greenIn double blueIn double hue double saturation double value double min max delta min minRGB redIn greenIn blueIn max maxRGB.. redIn double greenIn double blueIn double hue double saturation double value double min max delta min minRGB redIn greenIn blueIn max maxRGB redIn greenIn blueIn value max delta max min if max 0 saturation delta max else saturation 0 hue.. double hue double saturation double value double min max delta min minRGB redIn greenIn blueIn max maxRGB redIn greenIn blueIn value max delta max min if max 0 saturation delta max else saturation 0 hue 1.0 return if redIn max hue greenIn..
|