automated snapshot
This commit is contained in:
7
main.go
7
main.go
@@ -50,8 +50,8 @@ func main() {
|
||||
t0 := time.Now()
|
||||
|
||||
rng := rand.New(rand.NewSource(0))
|
||||
//imageField := NewImageField("/home/d/Dropbox/art/data/david.png")
|
||||
imageField := NewImageField("/home/d/Dropbox/art/data/moses_statue.jpg")
|
||||
imageField := NewImageField("/home/d/Dropbox/art/data/david.png")
|
||||
//imageField := NewImageField("/home/d/Dropbox/art/data/moses_statue.jpg")
|
||||
field :=
|
||||
&TranslateField {
|
||||
x: -float32(sourceWidth / 2.0),
|
||||
@@ -66,7 +66,8 @@ func main() {
|
||||
|
||||
sierpinskiLayer := &SierpinskiArrow { dirty: true }
|
||||
|
||||
//sketch.AddColorLayer("background-magenta", rl.Magenta)
|
||||
sketch.AddColorLayer("background-magenta", rl.Magenta)
|
||||
//sketch.AddColorLayer("background-black", rl.Black)
|
||||
sketch.AddLayer("field", &FieldLayer{field: field, loColor: rl.NewColor(0, 0, 0, 0), hiColor: rl.Yellow, dirty: true})
|
||||
contourLayer := NewContourLayer(&sketch, rng, field)
|
||||
sketch.AddLayer("contours", contourLayer)
|
||||
|
||||
Reference in New Issue
Block a user