imageutils/util.go
2024-09-03 23:07:15 +03:00

21 lines
310 B
Go

package imageutils
import (
"image"
"image/color"
)
type SinglePixel struct{}
func (s SinglePixel) At(x, y int) color.Color {
return color.White
}
func (s SinglePixel) ColorModel() color.Model {
return color.RGBAModel
}
func (s SinglePixel) Bounds() image.Rectangle {
return image.Rect(0, 0, 1, 1)
}