okaneco / kmeans-colors

k-means clustering library and binary to find dominant colors in images
Apache License 2.0
132 stars 9 forks source link

Add `--transparency` support for find/replace #15

Closed okaneco closed 4 years ago

okaneco commented 4 years ago

This should look like the main loop functions. It might be possible to split these out into their own functions to be able to reduce/reuse code since they do very similar things.

The main loops in general should be able to be simplified due to generics and similar strategies of calculating results.