Compare commits
3
Commits
73607833e5
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0af23b36f | ||
|
|
990506eea4 | ||
|
|
eab0582b93 |
No files matched your search
@@ -2,6 +2,7 @@ child_porn
|
||||
imageutils.test
|
||||
cpu.out
|
||||
profile.out
|
||||
bin/
|
||||
*.png
|
||||
*.gif
|
||||
*.jpg
|
||||
|
||||
@@ -8,6 +8,7 @@ utilities work in theory, but doing everything very slow.
|
||||
i really love Go's image.Image interface type, but its really hard to do something with it well.
|
||||
|
||||
TODO:
|
||||
- restructure directories and files
|
||||
- create main binary/module that give access to all implemented things in cmd/
|
||||
- create access to framebuffer without /dev/fb (imageutils/util/fb doesn't work for now)
|
||||
- figure out image rotating mechanism
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//go:build todo (doesn't work)
|
||||
package main
|
||||
//go:build todo
|
||||
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