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 classClassicNoise"Classic Perlin" noise, as opposed to the Simplex Noise also created by Ken Perlin (which is produced bySeededNoise; both can be produced byFastNoise).classCosmicNumberingLike a kind of RNG, but fully deterministic in a way that depends on a "connected" double array.classFastNoiseA wide range of noise functions that can all be called from one configurable object.classFoamNoiseAn unusual continuous noise generator that tends to produce organic-looking forms, currently supporting 2D, 3D, 4D and 6D.classGlitchNoiseA noise generator for 1D, 2D, 3D, 4D, or 6D noise that should look "glitchy", with waves of changing values moving through triangular shapes.classJitterNoise"Classic Perlin" noise with jitter applied to the grid it operates on.classMasonNoiseNoise 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.classMerlinNoiseReally strange noise functions that typically produce curving black and white shapes when rendered.static classNoise.Exponential2Dstatic classNoise.InverseLayered2Dstatic classNoise.Layered2Dstatic classNoise.QuilezNoiseA hybrid between value and gradient noise that may be faster for 1D noise.static classNoise.Ridged2Dstatic classNoise.Scaled2Dstatic classNoise.Slick2Dstatic classNoise.Sway2Dstatic classNoise.Turbulent2Dstatic classNoise.Viny2DclassSeededNoiseMore 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).classValueNoiseA low-quality continuous noise generator with strong grid artifacts, this is nonetheless useful as a building block.classWhirlingNoiseA Noise class that's here for compatibility; it extendsSeededNoiseand delegates to it for all methods exceptWhirlingNoise.noiseAlt(double, double)andWhirlingNoise.noiseAlt(double, double, double).classWhiteNoisePerformance-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.Noise2DNoise.Exponential2D. basisprotected Noise.Noise2DNoise.InverseLayered2D. basisprotected Noise.Noise2DNoise.Layered2D. basisprotected Noise.Noise2DNoise.Ridged2D. basisprotected Noise.Noise2DNoise.Scaled2D. basisprotected Noise.Noise2DNoise.Slick2D. basisprotected Noise.Noise2DNoise.Turbulent2D. basisprotected Noise.Noise2DNoise.Viny2D. basisprotected Noise.Noise2DNoise.Slick2D. disturbanceprotected Noise.Noise2DNoise.Turbulent2D. disturbanceprotected Noise.Noise2DNoise.Viny2D. disturbanceMethods in squidpony.squidmath with parameters of type Noise.Noise2D Modifier and Type Method Description static voidTuringPattern. 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 voidTuringPattern. 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 doubleNoise. 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 everysizeXunits thatxincreases 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)