Initializer

init(frequency:octaveCount:lacunarity:seed:)

Initializes a ridged noise source with the specified parameters.

Declaration

init(frequency: Double, octaveCount: Int, lacunarity: Double, seed: Int32)

Parameters

frequency

The initial value for the frequency property, which determines the number and size of visible features in any given unit area of generated noise.

octaveCount

The initial value for the octaveCount property, which determines the complexity of generated noise.

lacunarity

The initial value for the lacunarity property, which determines the increase in frequency between octaves and thus the gradation between coarseness and uniformity in generated noise.

seed

The initial value for the seed property, which determines the overall structure of generated noise.

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.