Compare commits

..
3 Commits
Author SHA1 Message Date
twocookedfaggots f0af23b36f options 2026-11-11 16:49:30 +03:00
twocookedfaggots 990506eea4 fixing 2026-11-03 11:19:11 +03:00
twocookedfaggots eab0582b93 todo 2026-11-03 10:56:10 +03:00
4 changed files with 5 additions and 3 deletions

No files matched your search

+1
View File
@@ -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
+1
View File
@@ -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
+2 -2
View File
@@ -1,5 +1,5 @@
//go:build todo (doesn't work) //go:build todo
package main package ttyimageviewer
import ( import (
"image" "image"
+1 -1
View File
@@ -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)
} }