From cf3f8ff3ecffa93506b1478ec57a7c0d7ff01f92 Mon Sep 17 00:00:00 2001 From: XoxJlopeZi4BB Date: Tue, 27 May 2025 09:57:40 +0400 Subject: [PATCH] Update palette.go --- palette.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/palette.go b/palette.go index 1968d93..a445ab4 100644 --- a/palette.go +++ b/palette.go @@ -59,7 +59,7 @@ func (c Convert) Bounds() image.Rectangle { return c.Image.Bounds() } func (c Convert) At(x, y int) color.Color { if isMeanCloser(c.Palette, c.Image.At(x, y)) { first, second := twoClosest(c.Palette, c.Image.At(x, y)) - // chessboard texture + // bayer matrix 2x2 (chessboard texture) if (x%2 != 0) && (y%2 != 0) || (x%2 == 0) && (y%2 == 0) { return first }