public interface Filter
Modifier and Type | Method and Description |
---|---|
default Filter |
and(Filter filter)
Returns a filter that combines this one and the specified one, returning the lowest strength of them both.
|
static DefaultFilter.Builder |
build(Dimension dimension)
Create a filter builder for a default filter implementation.
|
float |
modifyStrength(int x,
int y,
float strength)
Filter the input strength.
|
float modifyStrength(int x, int y, float strength)
x
- The X coordinate in WorldPainter dimension coordinates for which to determine the filter
strength.y
- The Y coordinate in WorldPainter dimension coordinates for which to determine the filter
strength.strength
- The input filter strength as a number between 0.0 and 1.0.default Filter and(Filter filter)
static DefaultFilter.Builder build(Dimension dimension)