zakkhoyt / ColorPicKit

A collection of UIControls for picking colors on iPhone, iPad, and other iOS devices. Gradient slider, Hue slider, RGB sliders, HSB sliders, CMYK sliders, ImagePixelPicker, HSB Wheel, HSB Spectrum. Color related class extensions
MIT License
15 stars 4 forks source link

How do I get black and white colors in HueSlider? #34

Open akhilcb opened 6 years ago

akhilcb commented 6 years ago

Thanks for the great library. It is amazing. I am trying to use HueSlider but I have a requirement to show black and white colors at both end of the spectrum so that user can select those two colors too. Is it possible with HueSlider? How do I proceed with this? Please suggest?

zakkhoyt commented 6 years ago

So to summarize you want a hue slider with black and shite at the ends? That’s not possible with this sdk and to my knowledge is an abnormal way to pick a hue because black and white are not represented with hue alone. You could modify the source to do so but it’s not a trivial task.

Best of luck

On Oct 15, 2017, at 14:08, Akhil Choran Balan notifications@github.com wrote:

Thanks for the great library. It is amazing. I am trying to use HueSlider but I have a requirement to show black and white colors at both end of the spectrum so that user can select those two colors too. Is it possible with HueSlider? How do I proceed with this? Please suggest?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

akhilcb commented 6 years ago

Thanks for your reply. What we are looking for is a way to pick colors. I understand that it wont be a hue slider if we add black and white colors. I was thinking of having some kind of custom color picker slider for that. Thought if someone had already solved it, it would have been helpful.

akhilcb commented 6 years ago

Thanks again. I switched to this library. It has what I wanted. If anyone else looking for same thing, check out this library: https://github.com/gizmosachin/ColorSlider.