UIColor conversion from RGB to HSV , set brightness to UIColor
In my app I am trying to draw with different colors. I have my own color picker, but I want to add to this picker slider for color brightness. For understudying : I choose a color which is displayed somewhere in view as background color and to this color I want add slider which will slide from 1 to 0 and change brightness of the color and displays the color in window. Therefore I want to ask if there is any possible way how to convert. in my project I use this : CGContextSetRGBStrokeColor(current, R, G, B, A); so anytime I slide the slider I need to change the brightness of the color,