pretty color picker

Colors are now sorted by hue.
All places where color has been taken from palette are replaced with call to function, so that color could be index in palette, or (R,G,B) value