Uses of Interface
squidpony.squidmath.Noise.Noise2D
Package | Description |
---|---|
squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of Noise.Noise2D in squidpony.squidgrid.mapping
Constructors in squidpony.squidgrid.mapping with parameters of type Noise.Noise2D Constructor Description LocalMap(long initialSeed, int mapWidth, int mapHeight, Noise.Noise2D noiseGenerator)
Constructs a concrete WorldMapGenerator for a map that can be used to wrap a sphere (as with a texture on a 3D model), with seamless east-west wrapping, no north-south wrapping, and distortion that causes the poles to have significantly-exaggerated-in-size features while the equator is not distorted.LocalMap(long initialSeed, int mapWidth, int mapHeight, Noise.Noise2D noiseGenerator, double octaveMultiplier)
Constructs a concrete WorldMapGenerator for a map that can be used to wrap a sphere (as with a texture on a 3D model), with seamless east-west wrapping, no north-south wrapping, and distortion that causes the poles to have significantly-exaggerated-in-size features while the equator is not distorted.LocalMimicMap(long initialSeed, GreasedRegion toMimic, Noise.Noise2D noiseGenerator)
Constructs a concrete WorldMapGenerator for a map that should have land in roughly the same places as the given GreasedRegion's "on" cells, without projecting the land positions or changing heat by latitude.LocalMimicMap(long initialSeed, GreasedRegion toMimic, Noise.Noise2D noiseGenerator, double octaveMultiplier)
Constructs a concrete WorldMapGenerator for a map that should have land in roughly the same places as the given GreasedRegion's "on" cells, using an elliptical projection (specifically, a Mollweide projection).LocalMimicMap(long initialSeed, Noise.Noise2D noiseGenerator, double octaveMultiplier)
Constructs a 256x256 unprojected local map that will use land forms with a similar shape to Australia. -
Uses of Noise.Noise2D in squidpony.squidmath
Classes in squidpony.squidmath that implement Noise.Noise2D Modifier and Type Class Description class
ClassicNoise
"Classic Perlin" noise, as opposed to the Simplex Noise also created by Ken Perlin (which is produced bySeededNoise
; both can be produced byFastNoise
).class
CosmicNumbering
Like a kind of RNG, but fully deterministic in a way that depends on a "connected" double array.class
FastNoise
A wide range of noise functions that can all be called from one configurable object.class
FoamNoise
An unusual continuous noise generator that tends to produce organic-looking forms, currently supporting 2D, 3D, 4D and 6D.class
GlitchNoise
A noise generator for 1D, 2D, 3D, 4D, or 6D noise that should look "glitchy", with waves of changing values moving through triangular shapes.class
JitterNoise
"Classic Perlin" noise with jitter applied to the grid it operates on.class
MasonNoise
Noise functions that delegate work to the best-suited noise type for the requested dimensionality, plus some extra functions that affect a large multi-dimensional area at once.class
MerlinNoise
Really strange noise functions that typically produce curving black and white shapes when rendered.static class
Noise.Exponential2D
static class
Noise.InverseLayered2D
static class
Noise.Layered2D
static class
Noise.QuilezNoise
A hybrid between value and gradient noise that may be faster for 1D noise.static class
Noise.Ridged2D
static class
Noise.Scaled2D
static class
Noise.Slick2D
static class
Noise.Sway2D
static class
Noise.Turbulent2D
static class
Noise.Viny2D
class
SeededNoise
More advanced noise functions, in 2D, 3D, 4D, and 6D, with the last two as options for generating seamlessly-tiling noise usingNoise.seamless2D(double[][], long, int, Noise.Noise4D)
and/orNoise.seamless3D(double[][][], long, int, Noise.Noise6D)
.class
ValueNoise
A low-quality continuous noise generator with strong grid artifacts, this is nonetheless useful as a building block.class
WhirlingNoise
A Noise class that's here for compatibility; it extendsSeededNoise
and delegates to it for all methods exceptWhirlingNoise.noiseAlt(double, double)
andWhirlingNoise.noiseAlt(double, double, double)
.class
WhiteNoise
Performance-oriented white noise generator for 1D, 2D, 3D, 4D, and 6D.Fields in squidpony.squidmath declared as Noise.Noise2D Modifier and Type Field Description protected Noise.Noise2D
Noise.Exponential2D. basis
protected Noise.Noise2D
Noise.InverseLayered2D. basis
protected Noise.Noise2D
Noise.Layered2D. basis
protected Noise.Noise2D
Noise.Ridged2D. basis
protected Noise.Noise2D
Noise.Scaled2D. basis
protected Noise.Noise2D
Noise.Slick2D. basis
protected Noise.Noise2D
Noise.Turbulent2D. basis
protected Noise.Noise2D
Noise.Viny2D. basis
protected Noise.Noise2D
Noise.Slick2D. disturbance
protected Noise.Noise2D
Noise.Turbulent2D. disturbance
protected Noise.Noise2D
Noise.Viny2D. disturbance
Methods in squidpony.squidmath with parameters of type Noise.Noise2D Modifier and Type Method Description static void
TuringPattern. addNoise(double[] substance, int width, int height, double multiplier, Noise.Noise2D noise, long seed)
Simply adds the result of a noise call, multiplied by the given multiplier, to each point in substance.static void
TuringPattern. distort(int[][] offsets, int width, int height, Noise.Noise2D noise, long seed)
Alters the given offset information (as a jagged 2D int array) with the given Noise2D instance and seed.static double[]
TuringPattern. initialize(int width, int height, Noise.Noise2D noise, long seed)
Initializes a substance array that can be given to other static methods.static double[]
TuringPattern. initializeInto(double[] substance, int width, int height, Noise.Noise2D noise, long seed)
Initializes a substance array that can be given to other static methods.static double
Noise. seamless1D(Noise.Noise2D noise, double x, double sizeX, long seed)
LikeNoise.seamless2D(double[][], long, int, Noise4D)
, but this produces 1D noise that "tiles" by repeating its output everysizeX
units thatx
increases or decreases by.Constructors in squidpony.squidmath with parameters of type Noise.Noise2D Constructor Description Exponential2D(Noise.Noise2D basis)
Exponential2D(Noise.Noise2D basis, double sharpness)
InverseLayered2D(Noise.Noise2D basis)
InverseLayered2D(Noise.Noise2D basis, int octaves)
InverseLayered2D(Noise.Noise2D basis, int octaves, double frequency)
InverseLayered2D(Noise.Noise2D basis, int octaves, double frequency, double lacunarity)
Layered2D(Noise.Noise2D basis)
Layered2D(Noise.Noise2D basis, int octaves)
Layered2D(Noise.Noise2D basis, int octaves, double frequency)
Layered2D(Noise.Noise2D basis, int octaves, double frequency, double lacunarity)
Ridged2D(Noise.Noise2D basis)
Ridged2D(Noise.Noise2D basis, int octaves, double frequency)
Scaled2D(Noise.Noise2D basis)
Scaled2D(Noise.Noise2D basis, double scale)
Scaled2D(Noise.Noise2D basis, double scaleX, double scaleY)
Slick2D(Noise.Noise2D basis, Noise.Noise2D disturb)
Slick2D(Noise.Noise2D basis, Noise.Noise2D disturb, int octaves)
Turbulent2D(Noise.Noise2D basis, Noise.Noise2D disturb)
Turbulent2D(Noise.Noise2D basis, Noise.Noise2D disturb, int octaves)
Turbulent2D(Noise.Noise2D basis, Noise.Noise2D disturb, int octaves, double frequency)
Viny2D(Noise.Noise2D basis, Noise.Noise2D disturb)
Viny2D(Noise.Noise2D basis, Noise.Noise2D disturb, int octaves)
Viny2D(Noise.Noise2D basis, Noise.Noise2D disturb, int octaves, double frequency)