---
title: "checkerboardNoise(withSquareSize:)"
framework: gameplaykit
role: symbol
role_heading: Type Method
path: "gameplaykit/gkcheckerboardnoisesource/checkerboardnoise(withsquaresize:)"
---

# checkerboardNoise(withSquareSize:)

Creates a checkerboard noise source with the specified square size.

## Declaration

```swift
class func checkerboardNoise(withSquareSize squareSize: Double) -> Self
```

## Parameters

- `squareSize`: The initial value for the doc://com.apple.gameplaykit/documentation/GameplayKit/GKCheckerboardNoiseSource/squareSize property, which determines the size of the checkerboard pattern.

## 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

- [init(squareSize:)](gameplaykit/gkcheckerboardnoisesource/init(squaresize:).md)
