options
This commit is contained in:
1 parent
990506eea4
commit
f0af23b36f
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
//go:build todo
|
||||
package main
|
||||
package ttyimageviewer
|
||||
|
||||
import (
|
||||
"image"
|
||||
|
||||
@@ -65,6 +65,6 @@ func (d Dithering) ColorModel() color.Model { return color.GrayModel }
|
||||
func (d Dithering) Bounds() image.Rectangle { return d.Image.Bounds() }
|
||||
func (d Dithering) At(x, y int) color.Color {
|
||||
c := color.GrayModel.Convert(d.Image.At(x, y))
|
||||
return uniformGrid{grid{c.(color.Gray), d.Options.Factor}}.
|
||||
return uniformGrid{grid{c.(color.Gray), d.Options}}.
|
||||
At(x, y)
|
||||
}
|
||||
Reference in new issue
Block a user