---
title: GKSpheresNoiseSource
framework: gameplaykit
role: symbol
role_heading: Class
path: gameplaykit/gkspheresnoisesource
---

# GKSpheresNoiseSource

A procedural noise generator whose output is a 3D field of concentric spherical shells.

## Declaration

```swift
class GKSpheresNoiseSource
```

## Overview

Overview All noise sources generate infinite 3D fields of noise values, but this fact is especially relevant to sphere noise: by transforming a noise object in 3D, you can sample the noise in ways that “slice” through the spheres. Use this technique (combined with other noise sources and noise processing operations) to create effects such as wood-grain textures.

Like all GKNoiseSource subclasses, a sphere noise source represents a noise generation algorithm and its parameters. To make use of a noise source, first create 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.

## Topics

### Creating a Noise Source

- [init(frequency:)](gameplaykit/gkspheresnoisesource/init(frequency:).md)
- [spheresNoise(withFrequency:)](gameplaykit/gkspheresnoisesource/spheresnoise(withfrequency:).md)

### Managing Noise Generation Parameters

- [frequency](gameplaykit/gkspheresnoisesource/frequency.md)

## Relationships

### Inherits From

- [GKNoiseSource](gameplaykit/gknoisesource.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Procedural Noise

- [GKNoiseSource](gameplaykit/gknoisesource.md)
- [GKNoise](gameplaykit/gknoise.md)
- [GKNoiseMap](gameplaykit/gknoisemap.md)
- [GKCoherentNoiseSource](gameplaykit/gkcoherentnoisesource.md)
- [GKBillowNoiseSource](gameplaykit/gkbillownoisesource.md)
- [GKPerlinNoiseSource](gameplaykit/gkperlinnoisesource.md)
- [GKRidgedNoiseSource](gameplaykit/gkridgednoisesource.md)
- [GKVoronoiNoiseSource](gameplaykit/gkvoronoinoisesource.md)
- [GKCylindersNoiseSource](gameplaykit/gkcylindersnoisesource.md)
- [GKCheckerboardNoiseSource](gameplaykit/gkcheckerboardnoisesource.md)
- [GKConstantNoiseSource](gameplaykit/gkconstantnoisesource.md)
