/color-palette

Android's Palette API implementation for Xamarin.iOS

Primary LanguageC#MIT LicenseMIT

color-palette

Android's Palette API implementation for Xamarin.iOS. This libraty allows you to extract an array of colors from single image.

Available colors

  • Muted Color
  • Vibrant Color
  • Light Muted Color
  • Light Vibrant Color
  • Dark Muted Color
  • Dark Vibrant Color

Samples

Background color is MutedColor, Title is VibrantColor and smaller text is LightVibrantColor.

Alt text Alt text Alt text Alt text Alt text Alt text

Usage

var palette = new ColorPaletteGenerator();
var image = UIImage.FromBundle ("Images/sampleImage.jpeg");
palette.Generate (image);

// Use generated colors
Something.Color = palette.MutedColor;