Class ValueNoiseGenerator.ValueNoiseBuilder
java.lang.Object
de.articdive.jnoise.generators.noisegen.value.ValueNoiseGenerator.ValueNoiseBuilder
- All Implemented Interfaces:
NoiseSourceBuilder
- Enclosing class:
- ValueNoiseGenerator
@NullMarked
public static final class ValueNoiseGenerator.ValueNoiseBuilder
extends Object
implements NoiseSourceBuilder
Builder for the
ValueNoiseGenerator
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the NoiseSource.setFadeFunction
(FadeFunction fadeFunction) Sets the FadeFunction for theValueNoiseGenerator
.setInterpolation
(Interpolation interpolation) Sets the Interpolation for theValueNoiseGenerator
.setSeed
(long seed) Sets the seed for theValueNoiseGenerator
.
-
Method Details
-
setSeed
Sets the seed for theValueNoiseGenerator
.- Parameters:
seed
- the new seed for theValueNoiseGenerator
.- Returns:
ValueNoiseGenerator.ValueNoiseBuilder
this
-
setInterpolation
Sets the Interpolation for theValueNoiseGenerator
.- Parameters:
interpolation
- The newInterpolation
for theValueNoiseGenerator
.- Returns:
ValueNoiseGenerator.ValueNoiseBuilder
this
-
setFadeFunction
Sets the FadeFunction for theValueNoiseGenerator
.- Parameters:
fadeFunction
- the newFadeFunction
for theValueNoiseGenerator
.- Returns:
ValueNoiseGenerator.ValueNoiseBuilder
this
-
build
Description copied from interface:NoiseSourceBuilder
Builds the NoiseSource.- Specified by:
build
in interfaceNoiseSourceBuilder
- Returns:
NoiseSource
resulting from the parameters of theNoiseSourceBuilder
.
-