pixelweaver/main.go

30 lines
509 B
Go
Raw Normal View History

2022-04-24 14:24:54 +02:00
package main
import (
_ "image/jpeg"
_ "image/png"
2022-05-01 21:30:35 +02:00
"io/ioutil"
"log"
"math/rand"
2022-04-24 14:24:54 +02:00
)
func main() {
2022-05-01 21:30:35 +02:00
// store command line arguments into the register
initConfigRegister()
2022-05-01 21:30:35 +02:00
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
2022-04-24 14:24:54 +02:00
2022-05-01 21:30:35 +02:00
// launch main blending routine
pool.BlendImagesMain()
2022-04-24 14:24:54 +02:00
}