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

# raiseToPower(_:)

Replaces all values in the noise field by raising each value to the specified power.

## Declaration

```swift
func raiseToPower(_ power: Double)
```

## Parameters

- `power`: The exponent to raise each noise value to.

## Discussion

Discussion Noise values range from -1.0 to 1.0, so exponentiating always results in lower values than in the original noise, with a greater effect on low original values than on high values.

## See Also

### Applying Operations to Noise Values

- [applyAbsoluteValue()](gameplaykit/gknoise/applyabsolutevalue().md)
- [invert()](gameplaykit/gknoise/invert().md)
- [clamp(lowerBound:upperBound:)](gameplaykit/gknoise/clamp(lowerbound:upperbound:).md)
- [remapValues(toCurveWithControlPoints:)](gameplaykit/gknoise/remapvalues(tocurvewithcontrolpoints:).md)
- [remapValues(toTerracesWithPeaks:terracesInverted:)](gameplaykit/gknoise/remapvalues(toterraceswithpeaks:terracesinverted:).md)
