Package squidpony.squidgrid.gui.gdx
Class ColorNoise
java.lang.Object
squidpony.squidmath.FastNoise
squidpony.squidgrid.gui.gdx.ColorNoise
- All Implemented Interfaces:
Serializable
,Noise.Noise2D
,Noise.Noise3D
,Noise.Noise4D
,Noise.Noise6D
public class ColorNoise extends FastNoise
Created by Tommy Ettinger on 6/12/2017.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static ColorNoise
instance
Fields inherited from class squidpony.squidmath.FastNoise
BILLOW, CELL_VALUE, CELLULAR, CUBIC, CUBIC_FRACTAL, DISTANCE, DISTANCE_2, DISTANCE_2_ADD, DISTANCE_2_DIV, DISTANCE_2_MUL, DISTANCE_2_SUB, EUCLIDEAN, F2f, F3f, FBM, FOAM, FOAM_FRACTAL, G2f, G3f, grad4f, grad6f, H2f, HERMITE, LINEAR, MANHATTAN, NATURAL, NOISE_LOOKUP, PERLIN, PERLIN_FRACTAL, phiGrad2f, QUINTIC, RIDGED_MULTI, SIMPLEX, SIMPLEX_FRACTAL, VALUE, VALUE_FRACTAL, WHITE_NOISE
-
Constructor Summary
Constructors Constructor Description ColorNoise()
ColorNoise(int seed)
-
Method Summary
Modifier and Type Method Description static int
bounce256(int s)
float
colorNoise(double noise)
float
colorNoise(float xin, float yin, float zin, int seed)
3D simplex noise that produces a color, as a packed float.float
colorNoise(float xin, float yin, int seed)
2D simplex noise that produces a color, as a packed float.Methods inherited from class squidpony.squidmath.FastNoise
dotf, getCellular, getCellular, getConfiguredNoise, getConfiguredNoise, getConfiguredNoise, getConfiguredNoise, getCubic, getCubic, getCubicFractal, getCubicFractal, getFoam, getFoam, getFoam, getFoam, getFoamFractal, getFoamFractal, getFoamFractal, getFractalOctaves, getFractalType, getFrequency, getNoise, getNoise, getNoise, getNoise, getNoiseType, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getPerlin, getPerlin, getPerlin, getPerlin, getPerlinFractal, getPerlinFractal, getSeed, getSimplex, getSimplex, getSimplex, getSimplex, getSimplexFractal, getSimplexFractal, getSimplexFractal, getSimplexFractal, getValue, getValue, getValue, getValue, getValueFractal, getValueFractal, getValueFractal, getValueFractal, getWhiteNoise, getWhiteNoise, getWhiteNoise, getWhiteNoise, getWhiteNoiseInt, getWhiteNoiseInt, getWhiteNoiseInt, getWhiteNoiseInt, gradCoord2D, gradCoord3D, gradCoord4D, gradCoord6D, gradientPerturb2, gradientPerturb3, gradientPerturbFractal2, gradientPerturbFractal3, layered2D, layered2D, layered2D, layered2D, layered3D, layered3D, layered3D, layered3D, ridged2D, ridged2D, ridged2D, ridged3D, ridged3D, ridged3D, setCellularDistanceFunction, setCellularNoiseLookup, setCellularReturnType, setFractalGain, setFractalLacunarity, setFractalOctaves, setFractalType, setFrequency, setGradientPerturbAmp, setInterpolation, setNoiseType, setPointHash, setSeed, singleFoam, singleFoam, singleFoam, singleFoam, singleSimplex, singleSimplex, singleSimplex, singleSimplex, singleValue
-
Field Details
-
Constructor Details
-
ColorNoise
public ColorNoise() -
ColorNoise
-
-
Method Details
-
bounce256
-
colorNoise
-
colorNoise
2D simplex noise that produces a color, as a packed float.- Parameters:
xin
- X input; works well if between 0.0 and 1.0, but anything is acceptedyin
- Y input; works well if between 0.0 and 1.0, but anything is acceptedseed
- a seed that will change how and when any colors will be produced- Returns:
- noise in the form of a packed float color
-
colorNoise
3D simplex noise that produces a color, as a packed float.- Parameters:
xin
- X input; works well if between 0.0 and 1.0, but anything is acceptedyin
- Y input; works well if between 0.0 and 1.0, but anything is acceptedzin
- Z input; works well if between 0.0 and 1.0, but anything is acceptedseed
- a seed that will change how and when any colors will be produced- Returns:
- noise in the form of a packed float color
-