automated snapshot
This commit is contained in:
@@ -62,13 +62,13 @@ func (s *ContourLayer) Update(env *Env, g *sg.Graphics) {
|
||||
}
|
||||
|
||||
func (s *ContourLayer) Draw(env *Env, g *sg.Graphics) {
|
||||
//g.BeginAdditiveBlend()
|
||||
g.BeginAdditiveBlend()
|
||||
for _, actor := range s.actors {
|
||||
if actor != nil {
|
||||
actor.Draw(env, g)
|
||||
}
|
||||
}
|
||||
//g.EndBlend()
|
||||
g.EndBlend()
|
||||
}
|
||||
|
||||
func (s *ContourLayer) IsDirty() bool {
|
||||
@@ -92,7 +92,8 @@ func (a *Actor) Draw(env *Env, g *sg.Graphics) {
|
||||
|
||||
g.SetStrokeWeight(1.0)
|
||||
g.SetStroke(true)
|
||||
g.SetStrokeColor(a.color)
|
||||
c := a.color
|
||||
c.A = 255
|
||||
g.DrawLine(a.position, nextPosition)
|
||||
//rl.DrawLineV(a.position, nextPosition, a.color)
|
||||
a.position = nextPosition
|
||||
|
||||
Reference in New Issue
Block a user