---
title: colorMatrix
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scstreamconfiguration/colormatrix
---

# colorMatrix

A color matrix to apply to the output surface.

## Declaration

```swift
unowned(unsafe) var colorMatrix: CFString { get set }
```

## Discussion

Discussion You can specify a value for this property if your pixel format is 420v or 420f. The value must be one of the strings specified in Display Stream YCbCr to RGB conversion Matrix Options.

## See Also

### Configuring colors

- [pixelFormat](screencapturekit/scstreamconfiguration/pixelformat.md)
- [colorSpaceName](screencapturekit/scstreamconfiguration/colorspacename.md)
- [backgroundColor](screencapturekit/scstreamconfiguration/backgroundcolor.md)
