automated snapshot
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user