Class GrayscaleFilter
java.lang.Object
dev.cerus.maps.api.graphics.filter.GrayscaleFilter
- All Implemented Interfaces:
Filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
apply(MapGraphics<?,?> graphics, int x, int y, int minX, int maxX, int minY, int maxY)
Gets the transformed color for a specific pixelint
passes()
The amount of times this filter should be applied
-
Constructor Details
-
GrayscaleFilter
public GrayscaleFilter()
-
-
Method Details
-
apply
public byte apply(MapGraphics<?,?> graphics, int x, int y, int minX, int maxX, int minY, int maxY)Description copied from interface:Filter
Gets the transformed color for a specific pixel -
passes
public int passes()Description copied from interface:Filter
The amount of times this filter should be applied
-