Files

16 lines
640 B
Markdown
Raw Permalink Normal View History

# ColorX
2021-10-03 08:40:10 +03:00
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`.
2021-10-03 08:40:10 +03:00
# Example
An example on how to use this library is written in [example/example.go](https://github.com/illusionman1212/colorx/blob/master/example/example.go)
2021-10-03 08:40:10 +03:00
# Supported Image Formats
Currently ColorX supports these image formats:
- png
- jpeg
- webp
2021-11-11 10:42:26 +02:00
- gif