---
title: "raiseToPower(_:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gknoise/raisetopower(_:)-zm5g"
---

# raiseToPower(_:)

Replaces values in the noise field by exponentiating them with values from the specified noise object.

## Declaration

```swift
func raiseToPower(_ noise: GKNoise)
```

## Parameters

- `noise`: The noise object from which to use values as exponents.

## Discussion

Discussion Noise values are generally in the range [-1.0, 1.0], so exponentiating some points in a noise field can result in values outside the floating-point domain. Depending on the stylistic result you’re looking for, choose your base and exponent noises carefully or use other noise operations (such as the clamp(lowerBound:upperBound:) and remapValues(toCurveWithControlPoints:) methods) to conform the exponent noise to a specific range before using this method.

## See Also

### Applying Operations that Combine Noise

- [add(_:)](gameplaykit/gknoise/add(_:).md)
- [multiply(_:)](gameplaykit/gknoise/multiply(_:).md)
- [maximum(_:)](gameplaykit/gknoise/maximum(_:).md)
- [minimum(_:)](gameplaykit/gknoise/minimum(_:).md)
