automated snapshot

This commit is contained in:
sumi
2026-01-10 22:14:47 -06:00
parent 852b40ab13
commit b600acf540

View File

@@ -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