Return the main color of the image.
None
Color of color.RGBA.
color.RGBA
package main import ( "fmt" "github.com/fishtailstudio/imgo" ) func main() { r, g, b, a := imgo.Load("gopher.png"). MainColor(). RGBA() fmt.Println(r, g, b, a) }
Last updated 2 years ago