Initializer

init(frequency:)

Initializes a sphere noise source with the specified frequency.

Declaration

init(frequency: Double)

Parameters

frequency

The initial value for the frequency property, which determines the size and spacing of concentric spheres.

Return Value

A new noise source.

Discussion

To make use of this noise source, create a 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.

See Also

Creating a Noise Source

class func spheresNoise(withFrequency: Double) -> Self

Creates a sphere noise source with the specified frequency.