diff --git a/contour_layer.go b/contour_layer.go index 18d2171..b8ce1aa 100644 --- a/contour_layer.go +++ b/contour_layer.go @@ -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