Repository navigation
New
- (#327) Added stars, triangles and diamonds
Shape.Polygon.STAR,Shape.Polygon.TRIANGLEandShape.Polygon.DIAMONDspin and flip just like the other shapes. Make a star with more points withShape.Polygon.star(points = 6), or draw your own polygon from points. Thanks to @patxibocos for the triangle that got this started - Respect "Remove animations" in the accessibility settings.
rememberReduceMotion()in Compose andKonfettiView.isReduceMotionEnabled(context)for views tell you when it's on, so you can skip the confetti. Nothing changes unless you check it
Heads up: Shape is a sealed interface, so if you have an exhaustive when (shape) in your own code, it needs a branch for Shape.Polygon now.