Class OverlayPixelsImageEffect

java.lang.Object
de.gurkenlabs.litiengine.graphics.ImageEffect
de.gurkenlabs.litiengine.graphics.OverlayPixelsImageEffect
All Implemented Interfaces:
ITimeToLive, Comparable<ImageEffect>

public class OverlayPixelsImageEffect extends ImageEffect
  • Constructor Details

    • OverlayPixelsImageEffect

      public OverlayPixelsImageEffect(int ttl, Color color)
      Initializes a new instance of the OverlayPixelsImageEffect.
      Parameters:
      ttl - The time to live of this effect.
      color - The color of this effect.
  • Method Details

    • apply

      public BufferedImage apply(BufferedImage image)
      Description copied from class: ImageEffect
      Applies this image effect to the specified BufferedImage.
      Specified by:
      apply in class ImageEffect
      Parameters:
      image - the BufferedImage to apply the effect to
      Returns:
      the BufferedImage with the effect applied
    • getColor

      public Color getColor()