<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKVoronoiNoiseSource",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKVoronoiNoiseSource"
  },
  "title" : "GKVoronoiNoiseSource"
}
-->

# GKVoronoiNoiseSource

A procedural noise generator whose output (also called Worley noise or cellular noise) divides space into discrete cells surrounding random seed points.

```
class GKVoronoiNoiseSource
```

## Overview

Voronoi noise can generate textures resembling natural phenomena such as crystalline structures, cracked mud, or star fields.

![](images/com.apple.gameplaykit/media-2556379@2x.png)

Like all [`GKNoiseSource`](/documentation/GameplayKit/GKNoiseSource) subclasses, a Voronoi noise source represents a noise generation algorithm and its parameters. To make use of a noise source, first create [`GKNoise`](/documentation/GameplayKit/GKNoise) object from it (and optionally apply operations to that noise object or combine it with other noise objects). Then create a [`GKNoiseMap`](/documentation/GameplayKit/GKNoiseMap) object from your noise object, generating a concrete field of values that you can sample from directly or visualize using the <doc://com.apple.documentation/documentation/SpriteKit/SKTexture> or `SKTileMap` class.

## Topics

### Creating a Noise Source

[`init(frequency:displacement:distanceEnabled:seed:)`](/documentation/GameplayKit/GKVoronoiNoiseSource/init(frequency:displacement:distanceEnabled:seed:))

Initializes a Voronoi noise source with the specified parameters.

[`voronoiNoise(withFrequency:displacement:distanceEnabled:seed:)`](/documentation/GameplayKit/GKVoronoiNoiseSource/voronoiNoise(withFrequency:displacement:distanceEnabled:seed:))

Creates a Voronoi noise source with the specified parameters.

### Managing Noise Generation Parameters

[`frequency`](/documentation/GameplayKit/GKVoronoiNoiseSource/frequency)

A value that determines the number and size of cells in generated noise.

[`displacement`](/documentation/GameplayKit/GKVoronoiNoiseSource/displacement)

The range of random values to assign to each cell in generated noise.

[`isDistanceEnabled`](/documentation/GameplayKit/GKVoronoiNoiseSource/isDistanceEnabled)

A Boolean value that specifies whether generated noise values incorporate the distance from each point to the nearest seed point.

[`seed`](/documentation/GameplayKit/GKVoronoiNoiseSource/seed)

The value that determines the specific configuration of noise produced by the noise source.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)