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

27 lines
436 B

1 month ago
package main
import (
"flag"
1 month ago
)
type Opts struct {
Config string
Force bool
}
func ParseOpts() Opts {
var opts Opts
flag.StringVar(&opts.Config, "config", "config.json", "config file")
flag.BoolVar(&opts.Force, "force", false, "force a full convert")
flag.Parse()
return opts
}
1 month ago
func main() {
opts := ParseOpts()
settings := LoadSettings(opts.Config)
JankImage(settings.Base, settings.Source, settings.Target)
1 month ago
}