public class ColorNoise
extends squidpony.squidmath.FastNoise
Modifier and Type | Field and Description |
---|---|
static ColorNoise |
instance |
BILLOW, CELL_VALUE, CELLULAR, cellularDistanceFunction, cellularReturnType, CUBIC, CUBIC_FRACTAL, DISTANCE, DISTANCE_2, DISTANCE_2_ADD, DISTANCE_2_DIV, DISTANCE_2_MUL, DISTANCE_2_SUB, EUCLIDEAN, F2f, F3f, F4f, FBM, FOAM, FOAM_FRACTAL, fractalSpiral, fractalType, frequency, G2f, G3f, G4f, gain, grad2f, grad4f, grad5f, grad6f, gradientPerturbAmp, H2f, HERMITE, HONEY, HONEY_FRACTAL, interpolation, lacunarity, LIMIT4, LINEAR, MANHATTAN, MUTANT, MUTANT_FRACTAL, mutation, NATURAL, NOISE_LOOKUP, noiseType, octaves, PERLIN, PERLIN_FRACTAL, pointHash, QUINTIC, RIDGED_MULTI, seed, sharpness, SIMPLEX, SIMPLEX_FRACTAL, VALUE, VALUE_FRACTAL, WHITE_NOISE
Constructor and Description |
---|
ColorNoise() |
ColorNoise(int seed) |
Modifier and Type | Method and 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.
|
cubicLerp, dotf, getCellular, getCellular, getCellularDistanceFunction, getCellularReturnType, getConfiguredNoise, getConfiguredNoise, getConfiguredNoise, getConfiguredNoise, getConfiguredNoise, getCubic, getCubic, getCubic, getCubicFractal, getCubicFractal, getCubicFractal, getFoam, getFoam, getFoam, getFoam, getFoam, getFoamFractal, getFoamFractal, getFoamFractal, getFoamFractal, getFoamSharpness, getFractalGain, getFractalLacunarity, getFractalOctaves, getFractalType, getFrequency, getGradientPerturbAmp, getHoney, getHoney, getHoney, getHoney, getHoney, getHoneyFractal, getHoneyFractal, getHoneyFractal, getHoneyFractal, getInterpolation, getMutation, getNoise, getNoise, getNoise, getNoise, getNoise, getNoiseType, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getPerlin, getPerlin, getPerlin, getPerlin, getPerlin, getPerlinFractal, getPerlinFractal, getPointHash, getSeed, getSharpness, getSimplex, getSimplex, getSimplex, getSimplex, getSimplex, getSimplexFractal, getSimplexFractal, getSimplexFractal, getSimplexFractal, getSimplexFractal, getValue, getValue, getValue, getValue, getValue, getValueFractal, getValueFractal, getValueFractal, getValueFractal, getValueFractal, getWhiteNoise, getWhiteNoise, getWhiteNoise, getWhiteNoise, getWhiteNoise, gradCoord2D, gradCoord3D, gradCoord4D, gradCoord5D, gradCoord6D, gradientPerturb2, gradientPerturb3, gradientPerturbFractal2, gradientPerturbFractal3, hash256, hash256, hash256, hash256, hash256, hash32, hermiteInterpolator, isFractalSpiral, layered2D, layered2D, layered2D, layered2D, layered3D, layered3D, layered3D, layered3D, quinticInterpolator, ridged2D, ridged2D, ridged2D, ridged3D, ridged3D, ridged3D, rotateM7D, rotateU5D, rotateU6D, rotateU7D, rotateV6D, rotateV7D, rotateW4D, rotateW5D, rotateW6D, rotateW7D, rotateX2D, rotateX3D, rotateX4D, rotateX5D, rotateX6D, rotateX7D, rotateY2D, rotateY3D, rotateY4D, rotateY5D, rotateY6D, rotateY7D, rotateZ3D, rotateZ4D, rotateZ5D, rotateZ6D, rotateZ7D, setCellularDistanceFunction, setCellularNoiseLookup, setCellularReturnType, setFoamSharpness, setFractalGain, setFractalLacunarity, setFractalOctaves, setFractalSpiral, setFractalType, setFrequency, setGradientPerturbAmp, setInterpolation, setMutation, setNoiseType, setPointHash, setSeed, setSharpness, singleFoam, singleFoam, singleFoam, singleFoam, singleFoam, singleFoam, singleHoney, singleHoney, singleHoney, singleHoney, singleHoney, singleSimplex, singleSimplex, singleSimplex, singleSimplex, singleSimplex, singleValue, singleValue, singleValue, singleValue, singleValue, singleValue, valueNoise, valueNoise, valueNoise, valueNoise, valueNoise, valueNoise
public static final ColorNoise instance
public static int bounce256(int s)
public float colorNoise(double noise)
public float colorNoise(float xin, float yin, int seed)
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 producedpublic float colorNoise(float xin, float yin, float zin, int seed)
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 producedCopyright © Eben Howard 2012–2022. All rights reserved.