<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageRGBPrimaries/init(red_x:green_x:blue_x:white_x:red_y:green_y:blue_y:white_y:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So18vImageRGBPrimariesV5red_x7green_x6blue_x7white_x0C2_y0D2_y0E2_y0F2_yABSf_S7ftcfc"
  },
  "title" : "init(red_x:green_x:blue_x:white_x:red_y:green_y:blue_y:white_y:)"
}
-->

# init(red_x:green_x:blue_x:white_x:red_y:green_y:blue_y:white_y:)

Creates a structure that represents the specified chromaticity of primaries defining a color space.

```
init(red_x: Float, green_x: Float, blue_x: Float, white_x: Float, red_y: Float, green_y: Float, blue_y: Float, white_y: Float)
```

## Parameters

`red_x`

The red `x` value according to the CIE 1931 color space.

`green_x`

The green `x` value according to the CIE 1931 color space.

`blue_x`

The blue `x` value according to the CIE 1931 color space.

`white_x`

The white point `x` value according to the CIE 1931 color space.

`red_y`

The red `y` value according to the CIE 1931 color space.

`green_y`

The green `y` value according to the CIE 1931 color space.

`blue_y`

The blue `y` value according to the CIE 1931 color space.

`white_y`

The white point `y` value according to the CIE 1931 color space.

## Return Value

A new RGB primaries structure.

---

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)