<!--
{
  "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/GKConstantNoiseSource",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKConstantNoiseSource"
  },
  "title" : "GKConstantNoiseSource"
}
-->

# GKConstantNoiseSource

A procedural noise generator that outputs a field of a single constant value.

```
class GKConstantNoiseSource
```

## Overview

Constant noise can be useful as an input to [`GKNoise`](/documentation/GameplayKit/GKNoise) methods that create noise by combining other noise objects through various operations. For example, when using the [`displaceWithNoises(x:y:z:)`](/documentation/GameplayKit/GKNoise/displaceWithNoises(x:y:z:)) method you can pass constant noise for some parameters and non-constant noise for other parameters, resulting in a variable displacement along one axis but constant or no displacement along the others.

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

Like all [`GKNoiseSource`](/documentation/GameplayKit/GKNoiseSource) subclasses, a constant 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(value:)`](/documentation/GameplayKit/GKConstantNoiseSource/init(value:))

Initializes a noise source with the specified constant value.

[`constantNoise(withValue:)`](/documentation/GameplayKit/GKConstantNoiseSource/constantNoise(withValue:))

Creates a noise source with the specified constant value.

### Managing Noise Generation Parameters

[`value`](/documentation/GameplayKit/GKConstantNoiseSource/value)

The constant value for the generated noise.



---

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)