A procedural noise generator that outputs a field of a single constant value.
- iOS 10.0+
- macOS 10.12+
- tvOS 10.0+
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
displace 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.
GKNoise 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
GKNoise object from your noise object, generating a concrete field of values that you can sample from directly or visualize using the