<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKNoise/maximum(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKNoise(im)maximumWithNoise:"
  },
  "title" : "maximum(_:)"
}
-->

# maximum(_:)

Replaces values in the noise field by choosing the lesser of each value and a corresponding value in the specified noise object.

```
func maximum(_ noise: GKNoise)
```

## Parameters

`noise`

The noise object from which to compare and replace values.

## Discussion

In a grayscale texture, higher values are brighter and lower values are darker.

![](images/com.apple.gameplaykit/media-2556403@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)