Compare commits

..

2 Commits

Author SHA1 Message Date
f2eaec2dcc playing with layers 2026-05-02 20:35:52 -05:00
sumi
f09889919c automated snapshot 2026-05-02 16:57:21 -05:00
8 changed files with 23 additions and 8 deletions

5
.signore Normal file
View File

@@ -0,0 +1,5 @@
vendor/
result
snapshots/
snapshot.png

8
.strm/config Normal file
View File

@@ -0,0 +1,8 @@
[remotes]
[remotes.local]
enabled = true
repo = 'sumi'
[remotes.origin]
enabled = true
repo = 'sumi'

1
.strm/refs/adf/head Normal file
View File

@@ -0,0 +1 @@
0723fe496ed6c679262e6965dadf4839011f2eb749a529010366a9629f2568d9

1
.strm/refs/head Normal file
View File

@@ -0,0 +1 @@
0723fe496ed6c679262e6965dadf4839011f2eb749a529010366a9629f2568d9

0
.strm/storage/0.efile Executable file
View File

BIN
.strm/storage/0.idx Executable file

Binary file not shown.

BIN
.strm/storage/0.sfile Executable file

Binary file not shown.

16
main.go
View File

@@ -14,7 +14,7 @@ import (
gui "github.com/gen2brain/raylib-go/raygui"
rl "github.com/gen2brain/raylib-go/raylib"
"github.com/ojrac/opensimplex-go"
// "github.com/ojrac/opensimplex-go"
)
func Bootstrap() *Env {
@@ -106,9 +106,9 @@ func main() {
colorCycle := sg.NewFixedColorCycle(sg.FlourescentColors).Shuffle(0)
rng := rand.New(rand.NewSource(env.Time.Unix()))
imageField := NewImageField("/home/d/Dropbox/art/data/david.png")
noiseField := &SimplexNoiseField{Noise: opensimplex.NewNormalized32(env.Time.Unix())}
//imageField := NewImageField("/home/d/Dropbox/art/data/ramstatue.png")
// imageField := NewImageField("/home/d/Dropbox/art/data/david.png")
// noiseField := &SimplexNoiseField{Noise: opensimplex.NewNormalized32(env.Time.Unix())}
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")
//imageField := NewImageField("/home/d/Dropbox/art/data/bassrockastro/andromeda.jpg")
//imageField := NewImageField("/home/d/Dropbox/art/data/moses_statue.jpg")
@@ -121,8 +121,8 @@ func main() {
field:
&AdderField{
fields: []Field{
&ScaleField{scale: 3, field: imageField},
&ScaleField{scale: 500, field: noiseField},
&ScaleField{scale: 4, field: imageField},
//&ScaleField{scale: 100, field: noiseField},
},
},
}
@@ -136,14 +136,14 @@ func main() {
sketch.AddColorLayer("background-blue", rl.Blue)
sketch.AddColorLayer("background-black", rl.Black)
sketch.AddLayer("blinds", NewBlindsLayer(field))
//sketch.AddLayer("blinds", NewBlindsLayer(field))
//sketch.AddLayer("moses", imageLayer)
sketch.AddLayer("field", &FieldLayer{field: field, loColor: rl.NewColor(0, 0, 0, 0), hiColor: fieldColor, dirty: true})
actorColor := color.RGBA { R: 10, G: 58, B: 59, A: 25 }
fmt.Printf("actor color = %v\n", actorColor)
contourLayer := NewContourLayer(rng, field, actorColor, -math.Pi/3.0, 5.0 * math.Pi)
contourLayer := NewContourLayer(rng, field, actorColor, -math.Pi/3.0, 12.0 * math.Pi)
sketch.AddLayer("contours", contourLayer)
//sketch.AddLayer("sierpinski-arrowhead", sierpinskiLayer)
// aurora := NewImageLayer("/home/d/Dropbox/photos/Events/2025/Aurora/Photo Nov 11 2025, 9 52 03 PM.jpg")