Celebrate more with this lightweight confetti particle system 🎊
applyAlpha
to turn off Alpha for DrawableShapes
. This fixes an issue for non-tinted (DrawableShape, tint = false) when alpha is applied. by @laurentyhuel.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.
konfetti-xml
and konfetti-compose
. Thanks @GhislainVerrier for reporting the issueMigrating 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'
Party
for configuring Confettidamping
which is configurable in Party
Position.Relative(x, y)
and randomize spawn point chaining two positions with between with: Position.Relative(x,y).between(Position.Relative(x,y))
Angle.TOP
, Spread.Wide
, and Rotation.disabled()
core
- compose
- xml
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.
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:
This is the same release as v1.3.0 but includes the correct .aar which caused some issues in v1.3.0
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.
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:
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
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
This release adds the option to control the acceleration of the particles Pull request: #158 Issue: #48
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)
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