mirror of
https://github.com/IllusionMan1212/ColorX.git
synced 2026-10-24 02:12:32 +00:00
9451d2c6790da88b8d228034e0ab9de4f9f4b051
ColorX
ColorX is a library to determine the most prominent color in an image. ColorX doesn't use any sort of complex algorithms to calculate the prominent color, it simply loops over the image pixels and returns the color that occurs the most.
The getProminentColor function returns the color in 2 formats, a hex string such as: #abfecd and a variable of type color.Color.
Example
An example on how to use this library is written in example/example.go
Supported Image Formats
Currently ColorX supports these image formats:
- png
- jpeg
- webp
Languages
Go
100%