automated snapshot
This commit is contained in:
3
main.go
3
main.go
@@ -62,8 +62,7 @@ func main() {
|
|||||||
sierpinskiLayer := &SierpinskiArrow { dirty: true }
|
sierpinskiLayer := &SierpinskiArrow { dirty: true }
|
||||||
|
|
||||||
|
|
||||||
//sketch.AddColorLayer("background-black", rl.Black)
|
//sketch.AddColorLayer("background-magenta", rl.Magenta)
|
||||||
sketch.AddColorLayer("background-magenta", rl.Magenta)
|
|
||||||
sketch.AddLayer("field", &FieldLayer{field: field, loColor: rl.NewColor(0, 0, 0, 0), hiColor: rl.Yellow, dirty: true})
|
sketch.AddLayer("field", &FieldLayer{field: field, loColor: rl.NewColor(0, 0, 0, 0), hiColor: rl.Yellow, dirty: true})
|
||||||
contourLayer := NewContourLayer(&sketch, rng, field)
|
contourLayer := NewContourLayer(&sketch, rng, field)
|
||||||
sketch.AddLayer("contours", contourLayer)
|
sketch.AddLayer("contours", contourLayer)
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ func (s *Sketch) Draw(ctx *RenderCtx) {
|
|||||||
viewport := s.CalcViewport(ctx)
|
viewport := s.CalcViewport(ctx)
|
||||||
|
|
||||||
rl.BeginTextureMode(s.composite)
|
rl.BeginTextureMode(s.composite)
|
||||||
rl.ClearBackground(rl.Blank)
|
rl.ClearBackground(rl.Black)
|
||||||
for _, instance := range s.layerToolsOrdered {
|
for _, instance := range s.layerToolsOrdered {
|
||||||
config := instance.config
|
config := instance.config
|
||||||
if config.visible {
|
if config.visible {
|
||||||
|
|||||||
Reference in New Issue
Block a user