BetaDesigns( Blog ) Flex and Component Development

24Jun/080

Custom Color Picker Source

Some time ago now I decided as a self improvement mechanism to re-write one of the Flex components from scratch so that I could get my head around the Flex Component Framework. So I set my eyes on the ColorPicker Brave or stupid you decide as this was going to be one of my first components ever, I should have probably started somewhere a bit smaller.. But hey.. It works and I learnt a hell of a lot. and now it's time to share. I haven't looked at the code for this in a long long time so be gentle.. In addition there are many improvements that could be made, and I fully intended on implementing them, unfortunately time has got the better of me and I have no real reason to implement such things as multiple rss feeds ( kuler is really slow and not 100% reliable ). A choice to use squares / balls .. anything else you like as the renderer for the colors.

However it does have lots of other cool features like::

Color grouping

Nice shiny 3D balls for the color swatches.

Kuler Lookup facility ( optional just set Kuler = true/false );

Can be used exactly the same as the Flex Color picker so you can just swap it into existing projects.

OK Just right click to view the source

This is mostly based on the Flex Color Picker so feel free to use it in your own projects improve it and just give me a shout as I would love to see it implemented in real life projects personal or otherwise.