Chris Banes
Home
Me
Talks
Color extraction
Palette
,
Color extraction
Palette v21
Tried the Android Lollipop SDK? You may have noticed that Palette’s API has been updated. As before, Palette allows you to extract colors from images for use in your UI. Generating a palette The first step is to generate a Palette instance from a Bitmap. We have four related ways to do this: // Synchronous methods. // -------------------------------- // These should be used when you have access to the underlying image loading thread. // Picasso allows this through a Transformation. For other l
Palette
,
Color extraction
Palette preview
Tried the Android L preview SDK? You may have noticed a new support library called Palette. Palette allows you to extract colors from images for use in your UI (sound familiar?). Anyway I have made a mistake and not pushed any javadoc for it. So here is my quick overview until we push something official. Please be aware though that Palette’s API is changing for the full L release (not much though). Generating a palette The first step is to generate a Palette instance from a Bitmap. We have f
Color extraction
Colour Matching - Part 2
This post is the second part in a two part series. You can find the first post here [http://chris.banes.me/2014/02/18/colour-matching/]. -------------------------------------------------------------------------------- Carrying on from the previous post, we now have the palette of colours which make up our chosen image. The palette can be retrieved by calling getQuantizedColors() on our MedianCutQuantizer. We could just sort this array based on the count and job done, use the colours in desc
Color extraction
Colour Matching
Android 4.4 introduced more subtle use of colour throughout the OS and provided new guidance on using colour [http://developer.android.com/design/style/branding.html#color] in your applications to provide better branding (see this episode [http://www.youtube.com/watch?v=6QHkv-bSlds&list=PLWz5rJ2EKKc8j2B95zGMb8muZvrIy-wcF&feature=share&index=3&t=3m25s] of ADiA for more discussion). This means that the onus is now on you as a designer/developer to inject some colour into your app to make it stand