automated snapshot

This commit is contained in:
sumi
2025-12-18 01:01:50 -06:00
parent f982f194dd
commit 6b64903be7
5 changed files with 75 additions and 7 deletions

26
main.go
View File

@@ -13,8 +13,8 @@ import (
)
const (
screenWidth = 1400
screenHeight = 700
screenWidth = 1200
screenHeight = 900
displayScale = 2
snapshotsDir = "snapshots"
)
@@ -49,20 +49,34 @@ func main() {
Zoom: 1.0,
}
/*
field :=
ScaleField {
Scale: 10.0,
Scale: 50.0,
Field: &SimplexNoiseField {
Noise: opensimplex.NewNormalized32(0),
},
}
*/
imgf := NewImageField("aphrodite.jpeg")
imageField :=
TranslateField {
x: float32(w) / 2.0,
y: float32(h) / 2.0,
//x: 5, y: 5,
Field: &ScaleField {
Scale: 4.5,
Field: &imgf,
},
}
rng := rand.New(rand.NewSource(0))
contourSketch := NewContourSketch(rng, &field)
contourSketch := NewContourSketch(rng, &imageField)
sketches := []Sketch {
//&FieldSketch { Field: &field },
//&FieldSketch { Field: &imageField },
&contourSketch,
}
@@ -156,7 +170,7 @@ func NewContourSketch(rng *rand.Rand, field Field) ContourSketch {
position: RandRadialVec(rng, 0, 500, 0, 360),
field: field,
stepSize: 0.5,
color: rl.NewColor(11, 35, 176, 200),
color: rl.NewColor(11, 35, 176, 170),
}
}