This is a collection of code samples that I reference from elsewhere. These are not guarenteed to be production ready and for demonstration purposes only
This example uses K Means Clustering to determine the dominant colours in an image. Can be used for automatic theming.
You can find a write up on my blog