pixelweaver/main.go

30 lines
509 B
Go

package main
import (
_ "image/jpeg"
_ "image/png"
"io/ioutil"
"log"
"math/rand"
)
func main() {
// store command line arguments into the register
initConfigRegister()
if ConfigRegister.Quiet {
log.SetOutput(ioutil.Discard)
}
// init RNG
rand.Seed(ConfigRegister.Seed)
log.Println("Seed :", ConfigRegister.Seed)
// pool of workers unionizing, ready to blend a new picture using the power of friendship
var pool blendWorkerPool
// launch main blending routine
pool.BlendImagesMain()
}