Last updated 2 years ago
Draw a pixel in the image.
The instance of *imgo.Image .
*imgo.Image
package main import ( "github.com/fishtailstudio/imgo" "image/color" ) func main() { imgo.Canvas(300, 300, color.White). Pixel(100, 100, color.Black). Save("out.png") }
x
int
X-Coordinate of the pixel.
y
Y-Coordinate of the pixel.
c
color.Color
Color of the pixel.