Initializes a noise map by sampling from the specified noise object.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The noise object from which to create a noise map.
A new noise map object.
This initializer is equivalent to calling the
init(_: initializer with a size of
1, an origin of
[0, 0], a sample grid size of
100 x 100, and a
seamless parameter of
GKNoise objects are lightweight descriptions of noise generation and processing parameters. When you create a noise map from a noise object, GameplayKit performs the computation described by those objects to create an grid of noise sample values. You can then read those values (or interpolated values at non-integral positions on that grid) with the methods listed in Accessing Noise Values, or use the
SKTile classes to generate texture images or tile maps from the generated noise.