---
title: invert()
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: gameplaykit/gknoise/invert()
---

# invert()

Replaces all values in the noise field with their opposite, reversing the range of noise values.

## Declaration

```swift
func invert()
```

## Discussion

Discussion For example, a value of 1.0 becomes -1.0, a value of -0.5 becomes 0.5, and so on.

## See Also

### Applying Operations to Noise Values

- [applyAbsoluteValue()](gameplaykit/gknoise/applyabsolutevalue().md)
- [raiseToPower(_:)](gameplaykit/gknoise/raisetopower(_:)-14715.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)
