Last updated 2 years ago
Returns the color at the specified coordinates of the image.
Color of color.RGBA.
color.RGBA
package main import ( "fmt" "github.com/fishtailstudio/imgo" ) func main() { r, g, b, a := imgo.Load("gopher.png"). PickColor(50, 50). RGBA() fmt.Println(r, g, b, a) }
x
int
coordinate x axis
y
coordinate y axis