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
|
imageutils.test
|
||||||
cpu.out
|
cpu.out
|
||||||
profile.out
|
profile.out
|
||||||
|
bin/
|
||||||
*.png
|
*.png
|
||||||
*.gif
|
*.gif
|
||||||
*.jpg
|
*.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.
|
i really love Go's image.Image interface type, but its really hard to do something with it well.
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
|
- restructure directories and files
|
||||||
- create main binary/module that give access to all implemented things in cmd/
|
- 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)
|
- create access to framebuffer without /dev/fb (imageutils/util/fb doesn't work for now)
|
||||||
- figure out image rotating mechanism
|
- figure out image rotating mechanism
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//go:build todo (doesn't work)
|
//go:build todo
|
||||||
package main
|
package ttyimageviewer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"image"
|
"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) Bounds() image.Rectangle { return d.Image.Bounds() }
|
||||||
func (d Dithering) At(x, y int) color.Color {
|
func (d Dithering) At(x, y int) color.Color {
|
||||||
c := color.GrayModel.Convert(d.Image.At(x, y))
|
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)
|
At(x, y)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user