Class OctavationModule.OctavationModuleBuilder
java.lang.Object
de.articdive.jnoise.modules.octavation.OctavationModule.OctavationModuleBuilder
- All Implemented Interfaces:
NoiseSourceBuilder
- Enclosing class:
- OctavationModule
@NullMarked
public static final class OctavationModule.OctavationModuleBuilder
extends Object
implements NoiseSourceBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the NoiseSource.setFractalFunction
(FractalFunction fractalFunction) Sets the FractalFunction for theOctavationModule
.setGain
(double gain) Sets the gain for theOctavationModule
.setIncrementSeed
(boolean incrementSeed) Should the Noise Generator increment the seed with each octave?setLacunarity
(double lacunarity) Sets the lacunarity for theOctavationModule
.setNoiseSource
(NoiseSource noiseSource) Sets the noise source for theOctavationModule
.setNoiseSource
(NoiseSourceBuilder noiseSourceBuilder) Sets the noise source for theOctavationModule
.setOctaves
(int octaves) Sets the amount of octaves for theOctavationModule
.setPersistence
(double persistence) Deprecated.
-
Method Details
-
setNoiseSource
Sets the noise source for theOctavationModule
.- Parameters:
noiseSource
- the new noise source for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
setNoiseSource
public OctavationModule.OctavationModuleBuilder setNoiseSource(NoiseSourceBuilder noiseSourceBuilder) Sets the noise source for theOctavationModule
.- Parameters:
noiseSourceBuilder
- the new noise source for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
setOctaves
Sets the amount of octaves for theOctavationModule
.- Parameters:
octaves
- the new amount of octaves for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
setPersistence
Deprecated.UsesetGain(double)
- Internals have not changed.Sets the persistence for theOctavationModule
.- Parameters:
persistence
- the new persistence for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
setGain
Sets the gain for theOctavationModule
.- Parameters:
gain
- the new gain for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
setLacunarity
Sets the lacunarity for theOctavationModule
.- Parameters:
lacunarity
- the new lacunarity for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
setFractalFunction
Sets the FractalFunction for theOctavationModule
.- Parameters:
fractalFunction
- the newFractalFunction
for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
setIncrementSeed
Should the Noise Generator increment the seed with each octave?- Parameters:
incrementSeed
- true if seed should increment each octave for theOctavationModule
.- Returns:
OctavationModule.OctavationModuleBuilder
this
-
build
Description copied from interface:NoiseSourceBuilder
Builds the NoiseSource.- Specified by:
build
in interfaceNoiseSourceBuilder
- Returns:
NoiseSource
resulting from the parameters of theNoiseSourceBuilder
.
-
setGain(double)
- Internals have not changed.