Package rekit.logic.filters
Class RandomMode
java.lang.Object
rekit.logic.filters.RandomMode
- All Implemented Interfaces:
Filter
This filter realizes a filter which will map a color to a random color.
- Author:
- Dominik Fuchss
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ROContainer<RandomMode>
The one and only instance ofRandomMode
.Fields inherited from interface rekit.logic.filters.Filter
ALL_FILTERS
-
Method Summary
Modifier and TypeMethodDescriptionApply Filter.boolean
changed()
Indicates whether the internal state of theFilter
has been changed.boolean
This boolean indicates whether this filter can be applied pixel per pixel (slow).boolean
This boolean indicates whether this filter can be applied pixel per pixel (fast).
-
Field Details
-
INSTANCE
The one and only instance ofRandomMode
.
-
-
Method Details
-
changed
public boolean changed()Description copied from interface:Filter
Indicates whether the internal state of theFilter
has been changed. -
apply
Description copied from interface:Filter
Apply Filter. -
isApplyPixel
public boolean isApplyPixel()Description copied from interface:Filter
This boolean indicates whether this filter can be applied pixel per pixel (fast).- Specified by:
isApplyPixel
in interfaceFilter
- Returns:
true
ifFilter.apply(RGBAColor)
shall be used
-
isApplyImage
public boolean isApplyImage()Description copied from interface:Filter
This boolean indicates whether this filter can be applied pixel per pixel (slow).- Specified by:
isApplyImage
in interfaceFilter
- Returns:
true
ifFilter.apply(AbstractImage)
shall be used
-