Class Effects.SimplePixelEffect
java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.renderers.Effects.PixelEffect
com.portingdeadmods.portingdeadlibs.utils.renderers.Effects.SimplePixelEffect
- Direct Known Subclasses:
Effects.Brightness, Effects.ColorFilter, Effects.Contrast, Effects.CustomEffect, Effects.Gamma, Effects.Grayscale, Effects.HueShift, Effects.Invert, Effects.Noise, Effects.Opacity, Effects.Pixelate, Effects.Saturation, Effects.Sepia, Effects.Threshold, Effects.Tint
- Enclosing class:
Effects
Should be used whenever the process is sort of simple and can be done pixel by pixel on the original image (eg. darkening)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.platform.NativeImageapply(com.mojang.blaze3d.platform.NativeImage input) protected abstract intprocessPixel(int x, int y, int color, com.mojang.blaze3d.platform.NativeImage image) Methods inherited from class Effects.PixelEffect
getName
-
Constructor Details
-
SimplePixelEffect
public SimplePixelEffect()
-
-
Method Details
-
apply
public com.mojang.blaze3d.platform.NativeImage apply(com.mojang.blaze3d.platform.NativeImage input) - Specified by:
applyin classEffects.PixelEffect
-
processPixel
protected abstract int processPixel(int x, int y, int color, com.mojang.blaze3d.platform.NativeImage image)
-