Generate color theme for Flex application using Camera

User may want to make Flex application look like himself, his room or his jacket.


Use Flex 4 color styles chromeColor, accentColor and screenshot from the Camera.

Flex 4 provides coloring via styles chromeColor, color, selectionColor, accentColor and so on. Camera provides image of whatever user target it on. The main problem is how to extract colors from the BitmapData. I have user 2 methods:

  • Sorting colors by saturation and taking “distant” ones
  • Breaking colors into clusters usin K-means clusterization algorithm

View source code.

Leave a Reply