Skip to content

Commit

Permalink
fix: incorrect starting position for fluid
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Jul 7, 2024
1 parent c055814 commit 04a5579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkg/anim/animation.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ type Creator func() Animation

func RandomAnimation() Animation {
anims := []Animation{
&Fluid{},
&Midjo{},
&Cyform{},
&Collapse{},
&Conway{},
&Cos{},
&Cyform{},
&Fluid{},
&Midjo{},
}

return anims[rand.Int()%len(anims)]
Expand Down
2 changes: 1 addition & 1 deletion pkg/anim/fluid.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (f *Fluid) Init(start image.Image) {
}
particles = append(particles, fluid.NewParticle(
float64(col)*POSITION_FACTOR,
float64(size.R-1-row)*POSITION_FACTOR,
float64(row)*POSITION_FACTOR,
0,
0,
))
Expand Down

0 comments on commit 04a5579

Please sign in to comment.