automated snapshot
This commit is contained in:
@@ -19,6 +19,8 @@ func NewBlindsLayer(field Field) *BlindsLayer {
|
||||
|
||||
func (l *BlindsLayer) Draw(env *Env, g *sg.Graphics) {
|
||||
|
||||
g.BeginAdditiveBlend()
|
||||
|
||||
rowHeight := float32(10.0)
|
||||
rows := int32(g.Bounds.Height / rowHeight)
|
||||
|
||||
@@ -42,6 +44,8 @@ func (l *BlindsLayer) Draw(env *Env, g *sg.Graphics) {
|
||||
}
|
||||
|
||||
l.Dirty = false
|
||||
|
||||
g.EndBlend()
|
||||
}
|
||||
|
||||
func (l *BlindsLayer) Update(env *Env, g *sg.Graphics) {
|
||||
|
||||
4
main.go
4
main.go
@@ -108,7 +108,7 @@ func main() {
|
||||
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())}
|
||||
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/andromeda.jpg")
|
||||
//imageField := NewImageField("/home/d/Dropbox/art/data/moses_statue.jpg")
|
||||
@@ -121,7 +121,7 @@ func main() {
|
||||
field:
|
||||
&AdderField{
|
||||
fields: []Field{
|
||||
&ScaleField{scale: 3, field: imageField},
|
||||
//&ScaleField{scale: 3, field: imageField},
|
||||
&ScaleField{scale: 250, field: noiseField},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user