SkillAgentSearch skills...

ColorThiefSwift

Grabs the dominant color or a representative color palette from an image. A Swift port of Sven Woltmann's Java implementation.

Install / Use

/learn @yamoridon/ColorThiefSwift
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ColorThiefSwift

Grabs the dominant color or a representative color palette from an image. A Swift port of Sven Woltmann's Java implementation.

screen shot

Build Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 10.2
  • Swift 5
  • iOS 12, macOS 10.13, tvOS 12, or watchOS 4

Installation

CocoaPods

ColorThiefSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ColorThiefSwift', '>= 0.5.0'

Carthage

Add this to Cartfile

github "yamoridon/ColorThiefSwift" ~> 0.5.0
$ carthage update

Author

Kazuki Ohara kazuki.ohara@gmail.com

License

ColorThiefSwift is available under the MIT license. See the LICENSE file for more info.

Thanks

  • Sven Woltmann - for the Java Implementation. ColorThiefSwift is a port of this.
  • https://github.com/SvenWoltmann/color-thief-java
  • Lokesh Dhakar - for the original JavaScript version.
  • http://lokeshdhakar.com/projects/color-thief/
  • https://github.com/lokesh/color-thief/
View on GitHub
GitHub Stars278
CategoryDevelopment
Updated28d ago
Forks34

Languages

Swift

Security Score

95/100

Audited on Feb 27, 2026

No findings