From 25cd72190d4b017c882b4ed7d9dcdcfdc4b077c3 Mon Sep 17 00:00:00 2001 From: Simon Kellet Date: Wed, 22 Jan 2025 17:23:56 +0000 Subject: [PATCH] fixed usage --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 8b94ded..af5a187 100644 --- a/main.go +++ b/main.go @@ -11,12 +11,13 @@ import ( // - Interactive UI // - Check compatability with other image types (PNG etc) // - better ffmpeg bindings (go package?) +// - Update README const MAX_SIZE = 1000000 func main() { if len(os.Args) < 6 { - fmt.Println("Usage: go run main.go ") + fmt.Println("Usage: ./glitch.go ") return } @@ -51,8 +52,10 @@ func main() { fmt.Fprintf(os.Stdout, "Generating:\n %d copies of %s\n %d random bytes of data\n %d interations(s)\n Chance to random %d%%\n\n", numCopies, sourceFile, shitSize, iterations, chanceToRandom) + makeOutputDir() + defer clearOutputDir() + generateGlitchedSequence(sourceFile, numCopies, shitSize, iterations, int32(chanceToRandom)) ffmpegGenerateMP4() - clearOutputDir() }