Contents

init(frequency:octaveCount:persistence:lacunarity:seed:)

Creates a billow noise source with the specified parameters.

Declaration

init(frequency: Double, octaveCount: Int, persistence: Double, 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.

  • persistence:

    The initial value for the Persistence property, which determines the decrease in amplitude between octaves and thus the roughness 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.

See Also

Creating a Noise Source