automated snapshot

This commit is contained in:
sumi
2026-01-10 16:03:24 -06:00
parent 90e36425ff
commit 0ce5df85aa
5 changed files with 145 additions and 88 deletions

View File

@@ -2,19 +2,20 @@ package main
import (
rl "github.com/gen2brain/raylib-go/raylib"
sg "github.com/d2fn/sumi/internal/graphics"
)
type SierpinskiArrow struct {
dirty bool
}
func (s *SierpinskiArrow) Draw(env *Env) {
rl.Translatef(float32(env.GetGraphicsWidth())/2.0, float32(env.GetGraphicsHeight())/2.0, 0)
func (s *SierpinskiArrow) Draw(env *Env, g *sg.Graphics) {
rl.Translatef(env.Offscreen.Width()/2.0, env.Offscreen.Height()/2.0, 0)
rl.ClearBackground(rl.NewColor(0, 0, 0, 0))
sierpinskiArrow(env, int(env.Ports["sierpinskiArrowDepth"]), env.Ports["sierpinskiArrowLength"])
}
func (s *SierpinskiArrow) Update(_ *Env) {
func (s *SierpinskiArrow) Update(_ *Env, g *sg.Graphics) {
s.dirty = true
}