I need to make a gradient form for one app I'm developping. I made one, but when i tried
to use my source with 26 colors it dind't work.
I need some piece of code that works on 8bit,16bit,24bit and 32bit(if possible it would be
of it worked also on 4bit-16 colors