<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/WhiteBalanceChromaticityValues/init(x:y:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So39AVCaptureWhiteBalanceChromaticityValuesa1x1yABSf_Sftcfc"
  },
  "title" : "init(x:y:)"
}
-->

# init(x:y:)

Creates a structure for white balance chromaticity values from its x and y coordinates.

```
init(x: Float, y: Float)
```

## Parameters

`x`

The x-coordinate in the CIE 1931 chromaticity diagram, which spans the range between `0` and `0.8`.

`y`

The y-coordinate in the CIE 1931 chromaticity diagram, which spans the range between `0` and `0.85`.

---

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)