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.booleanchanged()Indicates whether the internal state of theFilterhas been changed.booleanThis boolean indicates whether this filter can be applied pixel per pixel (slow).booleanThis 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:FilterIndicates whether the internal state of theFilterhas been changed. -
apply
Description copied from interface:FilterApply Filter. -
isApplyPixel
public boolean isApplyPixel()Description copied from interface:FilterThis boolean indicates whether this filter can be applied pixel per pixel (fast).- Specified by:
isApplyPixelin interfaceFilter- Returns:
trueifFilter.apply(RGBAColor)shall be used
-
isApplyImage
public boolean isApplyImage()Description copied from interface:FilterThis boolean indicates whether this filter can be applied pixel per pixel (slow).- Specified by:
isApplyImagein interfaceFilter- Returns:
trueifFilter.apply(AbstractImage)shall be used
-