public class SparkleFilter extends PointFilter
Modifier and Type | Field and Description |
---|---|
private int |
amount |
private int |
centreX |
private int |
centreY |
private int |
color |
private int |
height |
private int |
radius |
private int |
randomness |
private Random |
randomNumbers |
private float[] |
rayLengths |
private int |
rays |
private long |
seed |
private int |
width |
canFilterIndexColorModel
Constructor and Description |
---|
SparkleFilter() |
Modifier and Type | Method and Description |
---|---|
int |
filterRGB(int x,
int y,
int rgb) |
int |
getAmount()
Get the amount of sparkle.
|
int |
getColor() |
int |
getRadius()
Get the radius of the effect.
|
int |
getRandomness() |
int |
getRays() |
void |
setAmount(int amount)
Set the amount of sparkle.
|
void |
setColor(int color) |
void |
setDimensions(int width,
int height) |
void |
setRadius(int radius)
Set the radius of the effect.
|
void |
setRandomness(int randomness) |
void |
setRays(int rays) |
String |
toString() |
filter
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private int rays
private int radius
private int amount
private int color
private int randomness
private int width
private int height
private int centreX
private int centreY
private long seed
private float[] rayLengths
private Random randomNumbers
public SparkleFilter()
public void setColor(int color)
public int getColor()
public void setRandomness(int randomness)
public int getRandomness()
public void setAmount(int amount)
amount
- the amountgetAmount()
public int getAmount()
setAmount(int)
public void setRays(int rays)
public int getRays()
public void setRadius(int radius)
radius
- the radiusgetRadius()
public int getRadius()
setRadius(int)
public void setDimensions(int width, int height)
setDimensions
in class PointFilter
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses