Popularity
1.3
Growing
Activity
0.0
Stable
20
2
5

Description

This is a small image processing library done to find good color for icon background. It uses CIEDE2000 to determine what colors can be processed as the same.

Programming language: Kotlin
License: Apache License 2.0
Tags: Colors     Image Processing     Color Picker    
Latest version: v1.0.4

Poliwhirl alternatives and similar packages

Based on the "Colors" category.
Alternatively, view Poliwhirl alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Poliwhirl or a related project?

Add another 'Colors' Package

README

Android Arsenal Actual version API

Poliwhirl

Description

This is a small image processing library done to find good color for icon background. It uses CIEDE2000 to determine what colors can be processed as the same.

Result example

Here goes the table with the generated colors.

Input Result

Usage

Gradle:

compile 'com.antonpotapov:poliwhirl:$version'

Maven:
<dependency>
    <groupId>com.antonpotapov</groupId>
    <artifactId>poliwhirl</artifactId>
    <version>$version</version>
</dependency>
In code:

You need to use only one class: Poliwhirl(). It's instance is reusable. So, you may create in only once. Also, there is no any long-time operations in instance creation, so you can create it each time you need it.

Async way
Poliwhirl().generateAsync(bitmap, object : Poliwhirl.Callback {
    override fun foundColor(color: Int) {
      // do whatever you need with the color
    }
})
Sync way

Poliwhirl().generate(bitmap);

Customizable way

Here you can provide an executor to poliwhirl. Poliwirl will try to execute it's calculation in parallel in this case. Also you can provide something like current-thread executor (thats how sync way is done) or whatever you need.

Poliwhirl().generateOnExecutor(bitmap, object : Poliwhirl.Callback {
    override fun foundColor(color: Int) {
        pictureBackground.setBackgroundColor(color)
    }
}, Executors.newSingleThreadExecutor())