public final class TurbulencePatternRed extends AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
Constructor and Description |
---|
TurbulencePatternRed(double baseFrequencyX,
double baseFrequencyY,
int numOctaves,
int seed,
boolean isFractalNoise,
java.awt.geom.Rectangle2D tile,
java.awt.geom.AffineTransform txf,
java.awt.Rectangle devRect,
java.awt.color.ColorSpace cs,
boolean alpha) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.WritableRaster |
copyData(java.awt.image.WritableRaster dest)
Generates a Perlin noise pattern into dest Raster.
|
double |
getBaseFrequencyX() |
double |
getBaseFrequencyY() |
boolean[] |
getChannels() |
int |
getNumOctaves() |
int |
getSeed() |
java.awt.geom.Rectangle2D |
getTile() |
boolean |
isFractalNoise() |
int |
random(int seed) |
int |
setupSeed(int seed) |
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
public TurbulencePatternRed(double baseFrequencyX, double baseFrequencyY, int numOctaves, int seed, boolean isFractalNoise, java.awt.geom.Rectangle2D tile, java.awt.geom.AffineTransform txf, java.awt.Rectangle devRect, java.awt.color.ColorSpace cs, boolean alpha)
baseFrequencyX
- x-axis base frequency for the noise
function along the x-axisbaseFrequencyY
- y-axis base frequency for the noise
function along the x-axisnumOctaves
- number of octaves in the noise
function. Positive integral value.seed
- starting number for the pseudo random number generatorisFractalNoise
- defines whether the filter performs a
fractal noise or a turbulence function.tile
- defines the tile size. May be null if stitchTiles
is false. Otherwise, should not be null.txf
- The affine transform from device to user space.cs
- The Colorspace to output.alpha
- True if the data should have an alpha channel.public double getBaseFrequencyX()
public double getBaseFrequencyY()
public int getNumOctaves()
public int getSeed()
public java.awt.geom.Rectangle2D getTile()
public boolean isFractalNoise()
public boolean[] getChannels()
public final int setupSeed(int seed)
public final int random(int seed)
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster dest)
dest
- Raster to fill with the pattern.Copyright © 2022 Apache Software Foundation. All Rights Reserved.