Class RotationImageEffect

java.lang.Object
de.gurkenlabs.litiengine.graphics.ImageEffect
de.gurkenlabs.litiengine.graphics.RotationImageEffect
All Implemented Interfaces:
ITimeToLive, java.lang.Comparable<ImageEffect>
Direct Known Subclasses:
EntityRotationImageEffect

public class RotationImageEffect
extends ImageEffect
  • Constructor Details

    • RotationImageEffect

      public RotationImageEffect​(int ttl, float angle)
      Initializes a new instance of the RotationImageEffect.
      Parameters:
      ttl - The time to live of this effect.
      angle - The angle by which this effect rotates the base image.
  • Method Details

    • apply

      public java.awt.image.BufferedImage apply​(java.awt.image.BufferedImage image)
      Specified by:
      apply in class ImageEffect
    • getAngle

      public double getAngle()