Latest 1.3.0
License MIT
Platforms ios 8.0, osx 10.12

Pailead works just like the Palette library on Android and other tools like node-vibrant but is
completely written in Swift and optimized for macOS and iOS.


let image = <#Image#>
Pailead.extractPalette(from: image) { palette in
<#Do Something with Palette#>

The generated palette provides some swatches that represent the image in different ways. These are:

  • Muted Swatch (middle range luma and low saturation)
  • Dark Muted Swatch (low range luma)
  • Light Muted Swatch (high range luma)
  • Vibrant Swatch (middle range luma and high saturation)
  • Dark Vibrant Swatch (low range luma)
  • Light Vibrant Swatch (high range luma)


  • [x] Switch to swatches
  • [x] Add palette
  • [ ] Paralleize pixel extraction
  • [ ] Add more performance tests
  • [ ] Make better docs with example uses
  • [ ] Optimize processing loop
  • [ ] Add support for other clustering algorithms


If palette is pronounced pa-let then Pailead is pronounced pa-lid.

The word comes from the Irish word paileƔd meaning palette which is what this library extracts.


Latest podspec

    "name": "Pailead",
    "version": "1.3.0",
    "summary": "Extract a color palette from an image",
    "description": "Extract average colors from an image just like Googles Palette library on Android. Written to be a fast way to show vibrant colors behind or before an image.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "pducks32": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.3.0"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0",
        "osx": "10.12"
    "source_files": "Sources/Pailead/**/*",
    "pushed_with_swift_version": "4.0"

Pin It on Pinterest

Share This