automated snapshot

This commit is contained in:
sumi
2025-12-27 20:14:43 -06:00
parent 67f3e58a1b
commit e441d9bf7d
2 changed files with 22 additions and 5 deletions

13
main.go
View File

@@ -10,7 +10,7 @@ import (
"time"
g "github.com/d2fn/sumi/internal/graphics"
//"github.com/ojrac/opensimplex-go"
"github.com/ojrac/opensimplex-go"
gui "github.com/gen2brain/raylib-go/raygui"
rl "github.com/gen2brain/raylib-go/raylib"
@@ -58,7 +58,7 @@ func main() {
rng := rand.New(rand.NewSource(0))
//imageField := NewImageField("/home/d/Dropbox/art/data/david.png")
//noiseField := &SimplexNoiseField { Noise: opensimplex.New32(0) }
noiseField := &SimplexNoiseField { Noise: opensimplex.New32(0) }
sinXYField := &SinXYField { }
//imageField := NewImageField("/home/d/Dropbox/art/data/ramstatue.png")
//imageField := NewImageField("/home/d/Dropbox/art/data/bassrockastro/Photo Dec 24 2025, 5 58 23 PM.jpg")
@@ -69,8 +69,13 @@ func main() {
x: -float32(sourceWidth / 2.0),
y: -float32(sourceHeight / 2.0),
field: &ScaleField{
scale: 500.0,
field: sinXYField,
scale: 100.0,
field: &AdderField {
fields: []Field {
sinXYField,
noiseField,
},
},
},
}