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) {
|
||||
|
||||
Reference in New Issue
Block a user