From 04a5579c7126a83478eb454983b4c377611e0d98 Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Sun, 7 Jul 2024 20:20:38 +0800 Subject: [PATCH] fix: incorrect starting position for fluid --- pkg/anim/animation.go | 7 ++++--- pkg/anim/fluid.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/anim/animation.go b/pkg/anim/animation.go index 439cbcc0..3aef8017 100644 --- a/pkg/anim/animation.go +++ b/pkg/anim/animation.go @@ -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)] diff --git a/pkg/anim/fluid.go b/pkg/anim/fluid.go index bf7e3633..9b8db74b 100644 --- a/pkg/anim/fluid.go +++ b/pkg/anim/fluid.go @@ -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, ))