Skip to content

Commit

Permalink
fixed confetti rotation speed looking too similar
Browse files Browse the repository at this point in the history
  • Loading branch information
twhitt14 committed Mar 13, 2022
1 parent 1fc5659 commit 6ee6e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ConfettiSwiftUI/ConfettiSwiftUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ struct ConfettiAnimationView: View {


@State var move = false
@State var xSpeed:Double = Double.random(in: 1.001...2.001)
@State var xSpeed:Double = Double.random(in: 0.501...2.201)

@State var zSpeed = Double.random(in: 1.001...2.001)
@State var zSpeed = Double.random(in: 0.501...2.201)
@State var anchor = CGFloat.random(in: 0...1).rounded()

var body: some View {
Expand Down

0 comments on commit 6ee6e9b

Please sign in to comment.