---
title: "init(x:y:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcapturedevice/whitebalancechromaticityvalues/init(x:y:)"
---

# init(x:y:)

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

## Declaration

```swift
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.

## See Also

### Creating chromaticity values

- [init()](avfoundation/avcapturedevice/whitebalancechromaticityvalues/init().md)
