1
0

sepia, general filter function

This commit is contained in:
2022-05-01 22:20:25 +02:00
parent 8d79ea8200
commit 3d7fc1b2d3
2 changed files with 39 additions and 4 deletions

View File

@ -18,6 +18,7 @@ type Config struct {
OutputWidth int `json:output_width`
OutputHeight int `json:output_height`
Grayscale bool
Sepia bool
Amount int
Quiet bool
}
@ -53,6 +54,7 @@ func initConfigRegister() {
flag.StringVar(&ConfigRegister.BaseImage, "base-img", "", "Path to the base image to work with. Random image if not set")
flag.StringVar(&ConfigRegister.Dimensions, "dimensions", "1280x1024", "Out image dimensions. <width>x<height>")
flag.BoolVar(&ConfigRegister.Grayscale, "grayscale", false, "Output image in shade of gray (around 50)")
flag.BoolVar(&ConfigRegister.Sepia, "sepia", false, "Output image with sepia tone")
flag.IntVar(&ConfigRegister.Amount, "amount", 2, "Number of images to blend together")
flag.BoolVar(&ConfigRegister.Quiet, "quiet", false, "No progress messages")
flag.Parse()