diff --git a/main.go b/main.go index 37ba9fe..221233a 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,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 { @@ -99,12 +99,14 @@ func main() { env := Bootstrap() + rl.SetTraceLogLevel(rl.LogError) + // reproducable flourescent color cycle 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.New32(env.Time.Unix())} + noiseField := &SimplexNoiseField{Noise: opensimplex.New32(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") @@ -119,7 +121,7 @@ func main() { &AdderField{ fields: []Field{ &ScaleField{scale: 3, field: imageField}, - &ScaleField{scale: 150, field: &SinXYField{ }}, + &ScaleField{scale: 250, field: noiseField}, }, }, } @@ -148,7 +150,7 @@ func main() { //NewColor(11, 35, 176, 50), //r - contourLayer := NewContourLayer(&sketch, rng, field, actorColor, -4*math.Pi, 4*math.Pi) + contourLayer := NewContourLayer(&sketch, rng, field, actorColor, -12*math.Pi, 12*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") diff --git a/sketch.go b/sketch.go index 2f804ff..3c056d8 100644 --- a/sketch.go +++ b/sketch.go @@ -172,7 +172,6 @@ func (s *Sketch) Draw(env *Env) { rl.GenTextureMipmaps(&s.composite.Texture) rl.SetTextureFilter(s.composite.Texture, rl.FilterTrilinear) - // render each layer onto the composite offscreen.BeginPremultiplyBlend() offscreen.BeginTexture(s.composite)