Package 

Class Rotation

  • All Implemented Interfaces:

    
    public final class Rotation
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Rotation.Companion
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean getEnabled() by default true.
      final Float getSpeed() the rate at which the confetti will rotate per frame.
      final Float getVariance() the margin in which the rotationSpeed can differ to add randomness to the rotation speed of each confetti.
      final Float getMultiplier2D() Multiplier controlling the speed of the rotation around the center of the confetti.
      final Float getMultiplier3D() Multiplier controlling the 3D rotation of the confetti.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getEnabled

         final Boolean getEnabled()

        by default true. Set to false to prevent the confetti from rotating

      • getVariance

         final Float getVariance()

        the margin in which the rotationSpeed can differ to add randomness to the rotation speed of each confetti.

      • getMultiplier2D

         final Float getMultiplier2D()

        Multiplier controlling the speed of the rotation around the center of the confetti. Set this value to 0 to disable the 2D rotation effect.

      • getMultiplier3D

         final Float getMultiplier3D()

        Multiplier controlling the 3D rotation of the confetti.