automated snapshot
This commit is contained in:
34
main.go
34
main.go
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
// "fmt"
|
||||
"log"
|
||||
"math/rand"
|
||||
//"math/rand"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@@ -46,7 +46,7 @@ func main() {
|
||||
t0 := time.Now()
|
||||
|
||||
/*
|
||||
*/
|
||||
|
||||
|
||||
rng := rand.New(rand.NewSource(0))
|
||||
imageField := NewImageField("/home/d/Dropbox/art/passage/data/david.png")
|
||||
@@ -59,24 +59,34 @@ func main() {
|
||||
field: imageField,
|
||||
},
|
||||
}
|
||||
*/
|
||||
|
||||
sketch := NewSketch(sourceWidth, sourceHeight)
|
||||
|
||||
sierpinskiLayer := &SierpinskiArrow { dirty: true }
|
||||
|
||||
contourLayer := NewContourLayer(&sketch, rng, field)
|
||||
//sketch.CreateLayer("testPattern", &TestPattern{}, int32(sourceWidth), int32(sourceHeight))
|
||||
//sketch.CreateLayer("actors", &contourLayer, int32(sourceWidth), int32(sourceHeight))
|
||||
//sketch.CreateLayer("field", &FieldLayer{field: &field, dirty: true}, int32(sourceWidth), int32(sourceHeight))
|
||||
sketch.CreateLayer("contours", contourLayer)
|
||||
//contourLayer := NewContourLayer(&sketch, rng, field)
|
||||
//sketch.CreateLayer("field", &FieldLayer{field: field, dirty: true})
|
||||
//sketch.CreateLayer("contours", contourLayer)
|
||||
sketch.CreateLayer("sierpinski", sierpinskiLayer)
|
||||
|
||||
ports := MakePorts()
|
||||
ports["sierpinskiArrowAngle"] = Sine {
|
||||
Amp: 120,
|
||||
Bias: 100,
|
||||
Freq: 0.1,
|
||||
}
|
||||
ports["sierpinskiArrowAngle"] =
|
||||
Const {
|
||||
V: 60,
|
||||
}
|
||||
|
||||
|
||||
ports["sierpinskiArrowDepth"] =
|
||||
Const {
|
||||
V: 6,
|
||||
}
|
||||
|
||||
ports["sierpinskiArrowLength"] =
|
||||
Const {
|
||||
V: 10000,
|
||||
}
|
||||
|
||||
|
||||
for !rl.WindowShouldClose() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user