Konfetti Versions Save

Celebrate more with this lightweight confetti particle system 🎊

v2.0.4

4 months ago

Fixes

  • (https://github.com/DanielMartinus/Konfetti/pull/319) Fix rendering by dynamically updating FPS instead of locking it to 60fps. Phones that had a refresh rate of 120hz experienced a rendering speed that was two times faster. The experience should now be consistent across different frame rates.

v2.0.3

9 months ago

Fixes

  • (#309) Introducing applyAlpha to turn off Alpha for DrawableShapes. This fixes an issue for non-tinted (DrawableShape, tint = false) when alpha is applied. by @laurentyhuel.
  • (#301) Fixing an alpha issues for DrawableShapes in the compose SDK causing them to flicker. @dostalleos

Other

  • Upgrade AGP, Kotlin and other dependencies @DanielMartinus

v2.0.2

2 years ago

Fixes

  • (#287) Lower minSdk for konfetti-compose to api 21
  • (#288) Fix Out of Memory exception by @PaulKlauser
  • (#295) Improve transitive dependency setup

v2.0.1

2 years ago

This is a patch for the 2.0.0 release. Core classes weren't exposed making the library unusable and it includes some other small fixes that shouldn't have end up in a release.

Fixes

v2.0.0

2 years ago

Migrating from 1.x.x to 2.x.x? Read on how to migrate here

Be aware that the path to include Konfetti in Gradle has changed:

// old
implementation 'nl.dionsegijn:konfetti:1.3.2'

// new
implementation 'nl.dionsegijn:konfetti-compose:2.0.0'
implementation 'nl.dionsegijn:konfetti-xml:2.0.0'

What changed?

  • Support for compose
  • New and improved API using Party for configuring Confetti
  • Add more options for customization and randomness
  • Improved animation using damping which is configurable in Party
  • Beisdes using absolute position with Position.Absolute(x,y) there's now also a way to set the relative position with Position.Relative(x, y) and randomize spawn point chaining two positions with between with: Position.Relative(x,y).between(Position.Relative(x,y))
  • Easily configure Party with Presets such as Angle.TOP, Spread.Wide, and Rotation.disabled()
  • Simplified and improved core implementation
  • Decoupled core code to decouple core code from rendering
  • Modularized core - compose - xml
  • Add more sample projects and simplified existing sample projects
  • Updated readme with details on the new API
  • Releasing with blog post as migration guide to v2.0.0 https://dionsegijn.dev/konfetti-migration-guide-v2.0.0

v1.3.2

3 years ago

This release contains an important fix that addresses showing a different velocity across between low density and high density pixel devices. Thanks to the fix of @cmt218 the pixel density is taken into account.

Important when updating

When migrating to this new version the results of your Konfetti might look different. Please check whether it's still the desired outcome. To opt-out for this change you can set setSpeedDensityIndependent to false. However, this is a temporary solution. It's advised to test out your Konfetti implementation to see if it still behaves as expected. More information in this PR:

  • (#249) Fix density independent velocity calculations by @cmt218

This is the same release as v1.3.0 but includes the correct .aar which caused some issues in v1.3.0

v1.3.0

3 years ago

This release contains an important fix that addresses showing a different velocity across between low density and high density pixel devices. Thanks to the fix of @cmt218 the pixel density is taken into account.

Important when updating

When migrating to this new version the results of your Konfetti might look different. Please check whether it's still the desired outcome. To opt-out for this change you can set setSpeedDensityIndependent to false. However, this is a temporary solution. It's advised to test out your Konfetti implementation to see if it still behaves as expected. More information in this PR:

  • (#249) Fix density independent velocity calculations by @cmt218

v1.2.6

3 years ago

Added

Enhancement

A list of pull requests tagged for v1.2.6 can be found here: https://github.com/DanielMartinus/Konfetti/pulls?q=is%3Apr+is%3Aclosed+milestone%3A1.2.6

v1.2.4

3 years ago

This release adds the option to control the rotation speed of the particles

Use setRotationSpeedMultiplier to set a multiplier to control the rotation speed of the Confetti Use setRotationSpeedVariance to control the randomness of the confetti

Pull request: #189 Issue: #185

Thanks to @carlfindahl for his contribution

v1.2.2

3 years ago

This release adds the option to control the acceleration of the particles Pull request: #158 Issue: #48

Turn off acceleration

Only turning off the acceleration will result the particles having the same velocity they begin with. This can be done with:

konfettiView.build()
    ...
    .setAccelerationEnabled(false)

Set max acceleration

If you don't want the particles to keep the speed they begin with but have a slight change in velocity for a more natural feeling, you can use setMaxAccelaration.

konfettiView.build()
    ...
    .setMaxAcceleration(1.5f)

A maxAcceleration between 1.0 - 3.0 is visible in the lifetime of a particle