public class PostFXBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PostFXBuilder |
bloom(float threshold,
int blurSize,
float sigma)
Run a bloom effect on the texture.
|
PostFXBuilder |
blur(int blurSize,
float sigma)
Run a blur pass on the texture.
|
PostFXBuilder |
blur(int blurSize,
float sigma,
boolean horizontal)
Run a blur pass on the texture.
|
PostFXBuilder |
brightnessContrast(float brightness,
float contrast)
Run a brightness and contrast correction pass on the texture.
|
PostFXBuilder |
brightPass(float threshold)
Run a bright pass pass on the texture.
|
PostFXBuilder |
chromaticAberration()
Run a chromatic aberration effect pass on the texture.
|
void |
compose()
Compose and finalize rendering onto sketch texture.
|
void |
compose(processing.core.PGraphics graphics)
Compose and finalize rendering.
|
PostFXBuilder |
custom(Pass pass)
Run a custom pass on the texture.
|
PostFXBuilder |
denoise(float exponent)
Run a denoise pass on the texture.
|
PostFXBuilder |
grayScale()
Run a grayscale pass on the texture.
|
PostFXBuilder |
invert()
Run an invert pass on the texture.
|
PostFXBuilder |
noise(float amount,
float speed)
Run a noise pass on the texture.
|
PostFXBuilder |
pixelate(float amount)
Run a pixel effect pass on the texture.
|
PostFXBuilder |
rgbSplit(float delta)
Run a RGB split pass on the texture.
|
PostFXBuilder |
saturationVibrance(float saturation,
float vibrance)
Run a saturation and vibrance correction pass on the texture.
|
PostFXBuilder |
sobel()
Run a sobel edge detection pass on the texture.
|
PostFXBuilder |
toon()
Run a toon pass on the texture.
|
PostFXBuilder |
vignette(float amount,
float falloff)
Run a vignette pass on the texture.
|
public void compose()
public void compose(processing.core.PGraphics graphics)
graphics
- Texture to render onto.public PostFXBuilder custom(Pass pass)
pass
- Custom pass to be run.public PostFXBuilder blur(int blurSize, float sigma)
blurSize
- Size of the blur.sigma
- Sigma of the blur.public PostFXBuilder blur(int blurSize, float sigma, boolean horizontal)
blurSize
- Size of the blur.sigma
- Sigma of the blur.horizontal
- Indicates if the pass runs horizontal or vertical.public PostFXBuilder brightPass(float threshold)
threshold
- Threshold of the brightness.public PostFXBuilder sobel()
public PostFXBuilder toon()
public PostFXBuilder invert()
public PostFXBuilder brightnessContrast(float brightness, float contrast)
brightness
- Amount of brightness to add to the picture (default 0.0).contrast
- Contrast of the image (default 1.0).public PostFXBuilder pixelate(float amount)
amount
- Amount of the pixel effect.public PostFXBuilder chromaticAberration()
public PostFXBuilder grayScale()
public PostFXBuilder bloom(float threshold, int blurSize, float sigma)
threshold
- Luminance threshold.blurSize
- Size of the blur.sigma
- Sigma of the blur.public PostFXBuilder rgbSplit(float delta)
delta
- Delta of the rgb split effect.public PostFXBuilder vignette(float amount, float falloff)
amount
- Amount of the vignette effect.falloff
- Fall off of the vignette effect.public PostFXBuilder noise(float amount, float speed)
amount
- Amount of the noise effect.speed
- Speed of the noise effect.public PostFXBuilder denoise(float exponent)
exponent
- Exponent of the denoise effect.public PostFXBuilder saturationVibrance(float saturation, float vibrance)
saturation
- Amount of saturation to add to the picture (default 0.0).vibrance
- Vibrance of the colors (default 0.0).