<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/ColorMatch-swift.struct/init(workingColorSpace:targetColorSpace:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C10ColorMatchV07workingF5Space06targetfI0AESo07CGColorI3Refa_AItAA0deC5ErrorVYKcfc"
  },
  "title" : "init(workingColorSpace:targetColorSpace:)"
}
-->

# init(workingColorSpace:targetColorSpace:)

Creates a color match from a working color space and a target display color space.

```
init(workingColorSpace: CGColorSpace, targetColorSpace: CGColorSpace) throws(LowLevelRendererError)
```

## Parameters

`workingColorSpace`

The color space in which the renderer performs shading calculations.

`targetColorSpace`

The color space of the output display to convert to.

## Discussion> Throws: ``doc://com.apple.RealityKit/documentation/RealityKit/LowLevelRendererError`` if either color space is not a supported linear gamut.

---

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)