automated snapshot
This commit is contained in:
35
main.go
35
main.go
@@ -44,12 +44,6 @@ func main() {
|
||||
//rl.SetConfigFlags(rl.FlagMsaa4xHint)
|
||||
rl.InitWindow(targetWidth, targetHeight, "sumi sierpinski arrow")
|
||||
|
||||
// layout_name: controls initialization
|
||||
var ControlScrollPaneScrollView rl.Rectangle
|
||||
var ControlScrollPaneScrollOffset rl.Vector2
|
||||
|
||||
BlendModeToggleGroupActive := int32(0)
|
||||
|
||||
// reproducable flourescent color cycle
|
||||
colorCycle := g.NewFixedColorCycle(g.FlourescentColors).Shuffle(0)
|
||||
|
||||
@@ -79,7 +73,7 @@ func main() {
|
||||
},
|
||||
}
|
||||
|
||||
sierpinskiLayer := &SierpinskiArrow { dirty: true }
|
||||
//sierpinskiLayer := &SierpinskiArrow { dirty: true }
|
||||
|
||||
sketch := NewSketch(sourceWidth, sourceHeight)
|
||||
|
||||
@@ -89,7 +83,7 @@ func main() {
|
||||
|
||||
sketch.AddColorLayer("background-magenta", rl.Magenta)
|
||||
sketch.AddColorLayer("background-black", rl.Black)
|
||||
sketch.AddLayer("field", &FieldLayer{field: field, loColor: rl.NewColor(0, 0, 0, 0), hiColor: fieldColor, dirty: true})
|
||||
//sketch.AddLayer("field", &FieldLayer{field: field, loColor: rl.NewColor(0, 0, 0, 0), hiColor: fieldColor, dirty: true})
|
||||
actorColor := colorCycle.Next()
|
||||
|
||||
fmt.Printf("actor color = %v\n", actorColor)
|
||||
@@ -104,7 +98,7 @@ func main() {
|
||||
//r
|
||||
contourLayer := NewContourLayer(&sketch, rng, field, actorColor, -10*math.Pi, 10*math.Pi)
|
||||
sketch.AddLayer("contours", contourLayer)
|
||||
sketch.AddLayer("sierpinski-arrowhead", sierpinskiLayer)
|
||||
//sketch.AddLayer("sierpinski-arrowhead", sierpinskiLayer)
|
||||
// aurora := NewImageLayer("/home/d/Dropbox/photos/Events/2025/Aurora/Photo Nov 11 2025, 9 52 03 PM.jpg")
|
||||
// sketch.AddLayer("aurora", aurora)
|
||||
// cave := NewImageLayer("/home/d/Dropbox/photos/Events/2025/ Chelsea and James visit Lindell/Photo Nov 29 2025, 5 26 40 PM (29).jpg")
|
||||
@@ -168,28 +162,7 @@ func main() {
|
||||
gui.SetStyle(gui.DEFAULT, gui.TEXT_COLOR_FOCUSED, 0xFFFFFFFF)
|
||||
gui.SetStyle(gui.DEFAULT, gui.BORDER_COLOR_NORMAL, 0x404040FF)
|
||||
|
||||
controlPanelWidth := float32(targetWidth) / 4.0
|
||||
controlPanelHeight := float32(targetHeight)
|
||||
|
||||
// add gui layout controls
|
||||
// raygui: controls drawing
|
||||
gui.ScrollPanel(
|
||||
rl.Rectangle{
|
||||
X: 10,
|
||||
Y: 10,
|
||||
Width: controlPanelWidth - 20,
|
||||
Height: controlPanelHeight - 20,
|
||||
},
|
||||
"",
|
||||
rl.Rectangle{X: 10, Y: 10, Width: controlPanelWidth, Height: controlPanelHeight },
|
||||
&ControlScrollPaneScrollOffset,
|
||||
&ControlScrollPaneScrollView,
|
||||
)
|
||||
|
||||
gui.GroupBox(rl.Rectangle{X: 20, Y: 20, Width: controlPanelWidth - 50, Height: 60 }, "Blending")
|
||||
BlendModeToggleGroupActive = gui.ToggleGroup(rl.Rectangle{X: 30, Y: 40, Width: (controlPanelWidth - 70) / 3.0, Height: 24}, "ONE;TWO;THREE", BlendModeToggleGroupActive)
|
||||
|
||||
y := float32(90)
|
||||
y := float32(10)
|
||||
for _, layerTools := range sketch.layerToolsOrdered {
|
||||
|
||||
config := layerTools.config
|
||||
|
||||
Reference in New Issue
Block a user