automated snapshot
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
"math/rand"
|
||||
"github.com/gen2brain/raylib-go/raylib"
|
||||
@@ -52,7 +51,6 @@ func (s *ContourLayer) AddActors(n, sourceWidth, sourceHeight int32) {
|
||||
|
||||
func (s *ContourLayer) Update(ctx *RenderCtx) {
|
||||
s.AddActors(100, ctx.SourceWidth, ctx.SourceHeight)
|
||||
fmt.Printf("num actors = %d\n", len(s.actors))
|
||||
}
|
||||
|
||||
func (s *ContourLayer) Draw(ctx *RenderCtx) {
|
||||
@@ -81,7 +79,6 @@ func (a *Actor) Draw() {
|
||||
rad := rl.Remap(v, 0, 1, 0, 3*math.Pi)
|
||||
nextPosition := rl.Vector2{X: a.position.X + a.stepSize*float32(math.Cos(float64(rad))), Y: a.position.Y + a.stepSize*float32(math.Sin(float64(rad)))}
|
||||
rl.DrawLineV(a.position, nextPosition, a.color)
|
||||
//fmt.Printf("position %v -> nextPosition %v \n", a.position, nextPosition)
|
||||
a.position = nextPosition
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user