Latest 1.3.0
Homepage https://github.com/pducks32/Pailead
License MIT
Platforms ios 8.0, osx 10.12
Authors

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.

Usage

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)

Todo

  • [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

Name

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.

Author

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": "https://github.com/pducks32/Pailead",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "pducks32": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pducks32/Pailead.git",
        "tag": "1.3.0"
    },
    "social_media_url": "https://twitter.com/pducks32",
    "platforms": {
        "ios": "8.0",
        "osx": "10.12"
    },
    "source_files": "Sources/Pailead/**/*",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This