Class OverlayPixelsImageEffect
java.lang.Object
de.gurkenlabs.litiengine.graphics.ImageEffect
de.gurkenlabs.litiengine.graphics.OverlayPixelsImageEffect
- All Implemented Interfaces:
ITimeToLive, Comparable<ImageEffect>
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayPixelsImageEffect(int ttl, Color color) Initializes a new instance of theOverlayPixelsImageEffect. -
Method Summary
Modifier and TypeMethodDescriptionapply(BufferedImage image) Applies this image effect to the specified BufferedImage.getColor()Methods inherited from class ImageEffect
compareTo, equals, getAliveTime, getName, getPriority, getTimeToLive, hashCode, setName, setPriority, timeToLiveReached
-
Constructor Details
-
OverlayPixelsImageEffect
Initializes a new instance of theOverlayPixelsImageEffect.- Parameters:
ttl- The time to live of this effect.color- The color of this effect.
-
-
Method Details
-
apply
Description copied from class:ImageEffectApplies this image effect to the specified BufferedImage.- Specified by:
applyin classImageEffect- Parameters:
image- the BufferedImage to apply the effect to- Returns:
- the BufferedImage with the effect applied
-
getColor
-