Compare commits
2 Commits
66c423447e
...
f2eaec2dcc
| Author | SHA1 | Date | |
|---|---|---|---|
| f2eaec2dcc | |||
|
|
f09889919c |
8
.strm/config
Normal file
8
.strm/config
Normal 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
1
.strm/refs/adf/head
Normal file
@@ -0,0 +1 @@
|
|||||||
|
0723fe496ed6c679262e6965dadf4839011f2eb749a529010366a9629f2568d9
|
||||||
1
.strm/refs/head
Normal file
1
.strm/refs/head
Normal file
@@ -0,0 +1 @@
|
|||||||
|
0723fe496ed6c679262e6965dadf4839011f2eb749a529010366a9629f2568d9
|
||||||
0
.strm/storage/0.efile
Executable file
0
.strm/storage/0.efile
Executable file
BIN
.strm/storage/0.idx
Executable file
BIN
.strm/storage/0.idx
Executable file
Binary file not shown.
BIN
.strm/storage/0.sfile
Executable file
BIN
.strm/storage/0.sfile
Executable file
Binary file not shown.
16
main.go
16
main.go
@@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
gui "github.com/gen2brain/raylib-go/raygui"
|
gui "github.com/gen2brain/raylib-go/raygui"
|
||||||
rl "github.com/gen2brain/raylib-go/raylib"
|
rl "github.com/gen2brain/raylib-go/raylib"
|
||||||
"github.com/ojrac/opensimplex-go"
|
// "github.com/ojrac/opensimplex-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Bootstrap() *Env {
|
func Bootstrap() *Env {
|
||||||
@@ -106,9 +106,9 @@ func main() {
|
|||||||
colorCycle := sg.NewFixedColorCycle(sg.FlourescentColors).Shuffle(0)
|
colorCycle := sg.NewFixedColorCycle(sg.FlourescentColors).Shuffle(0)
|
||||||
|
|
||||||
rng := rand.New(rand.NewSource(env.Time.Unix()))
|
rng := rand.New(rand.NewSource(env.Time.Unix()))
|
||||||
imageField := NewImageField("/home/d/Dropbox/art/data/david.png")
|
// imageField := NewImageField("/home/d/Dropbox/art/data/david.png")
|
||||||
noiseField := &SimplexNoiseField{Noise: opensimplex.NewNormalized32(env.Time.Unix())}
|
// noiseField := &SimplexNoiseField{Noise: opensimplex.NewNormalized32(env.Time.Unix())}
|
||||||
//imageField := NewImageField("/home/d/Dropbox/art/data/ramstatue.png")
|
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/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/bassrockastro/andromeda.jpg")
|
||||||
//imageField := NewImageField("/home/d/Dropbox/art/data/moses_statue.jpg")
|
//imageField := NewImageField("/home/d/Dropbox/art/data/moses_statue.jpg")
|
||||||
@@ -121,8 +121,8 @@ func main() {
|
|||||||
field:
|
field:
|
||||||
&AdderField{
|
&AdderField{
|
||||||
fields: []Field{
|
fields: []Field{
|
||||||
&ScaleField{scale: 3, field: imageField},
|
&ScaleField{scale: 4, field: imageField},
|
||||||
&ScaleField{scale: 500, field: noiseField},
|
//&ScaleField{scale: 100, field: noiseField},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -136,14 +136,14 @@ func main() {
|
|||||||
|
|
||||||
sketch.AddColorLayer("background-blue", rl.Blue)
|
sketch.AddColorLayer("background-blue", rl.Blue)
|
||||||
sketch.AddColorLayer("background-black", rl.Black)
|
sketch.AddColorLayer("background-black", rl.Black)
|
||||||
sketch.AddLayer("blinds", NewBlindsLayer(field))
|
//sketch.AddLayer("blinds", NewBlindsLayer(field))
|
||||||
//sketch.AddLayer("moses", imageLayer)
|
//sketch.AddLayer("moses", imageLayer)
|
||||||
sketch.AddLayer("field", &FieldLayer{field: field, loColor: rl.NewColor(0, 0, 0, 0), hiColor: fieldColor, dirty: true})
|
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 }
|
actorColor := color.RGBA { R: 10, G: 58, B: 59, A: 25 }
|
||||||
fmt.Printf("actor color = %v\n", actorColor)
|
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("contours", contourLayer)
|
||||||
//sketch.AddLayer("sierpinski-arrowhead", sierpinskiLayer)
|
//sketch.AddLayer("sierpinski-arrowhead", sierpinskiLayer)
|
||||||
// aurora := NewImageLayer("/home/d/Dropbox/photos/Events/2025/Aurora/Photo Nov 11 2025, 9 52 03 PM.jpg")
|
// aurora := NewImageLayer("/home/d/Dropbox/photos/Events/2025/Aurora/Photo Nov 11 2025, 9 52 03 PM.jpg")
|
||||||
|
|||||||
Reference in New Issue
Block a user