GKConstantNoiseSource
A procedural noise generator that outputs a field of a single constant value.
Declaration
class GKConstantNoiseSourceOverview
Constant noise can be useful as an input to GKNoise methods that create noise by combining other noise objects through various operations. For example, when using the displaceWithNoises(x:y:z:) method you can pass constant noise for some parameters and non-constant noise for other parameters, resulting in a variable displacement along one axis but constant or no displacement along the others.
[Image]
Like all GKNoiseSource subclasses, a constant noise source represents a noise generation algorithm and its parameters. To make use of a noise source, first create GKNoise object from it (and optionally apply operations to that noise object or combine it with other noise objects). Then create a GKNoiseMap object from your noise object, generating a concrete field of values that you can sample from directly or visualize using the SKTexture or SKTileMap class.