A simple tool I use to "jankify" my textures. It performs a series of transforms that gives everything a consistent pixelated 80s look.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jankifier/main.go

32 lines
514 B

package main
import (
"flag"
"log"
)
type Opts struct {
Config string
Force bool
}
func ParseOpts() Opts {
var opts Opts
flag.StringVar(&opts.Config, "config", "jankifier.json", "config file")
flag.BoolVar(&opts.Force, "force", false, "force a full convert")
flag.Parse()
return opts
}
func main() {
opts := ParseOpts()
config := LoadSettings(opts.Config)
err := RenderImages(config, opts.Force)
if err != nil {
log.Fatalf("failed to walk dir %s: %v", config.Source, err)
}
}