---
title: "init(value:)"
framework: gameplaykit
role: symbol
role_heading: Initializer
path: "gameplaykit/gkconstantnoisesource/init(value:)"
---

# init(value:)

Initializes a noise source with the specified constant value.

## Declaration

```swift
init(value: Double)
```

## Parameters

- `value`: The constant value for the generated noise.

## Return Value

Return Value A new noise source.

## Discussion

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

- [constantNoise(withValue:)](gameplaykit/gkconstantnoisesource/constantnoise(withvalue:).md)
