This commit is contained in:
2026-03-29 17:03:48 +03:00
parent 7143e96ef3
commit 3880b353c1
20 changed files with 491 additions and 23 deletions

22
cmd/dither/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"flag"
"image"
"git.nkpl.cc/twocookedfaggots/imageutils/pkg/dithering"
"git.nkpl.cc/twocookedfaggots/imageutils/util"
)
var factor = flag.Float64("n", 0.75, "dithering effect 'magic' number")
func main() {
flag.Parse()
println(*factor)
if err := util.ProcessStdio(func(img image.Image) image.Image {
return dithering.Dithering{img, *factor}
}); err != nil {
panic(err)
}
}