---
title: "invertColorMatrix(withTolerance:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.1+]
path: "professional_video_applications/fxmatrix44/invertcolormatrix(withtolerance:)"
---

# invertColorMatrix(withTolerance:)

Inverts the matrix if possible.

## Declaration

```swift
func invertColorMatrix(withTolerance tolerance: Double) -> Bool
```

## Parameters

- `tolerance`: A threshold for determining whether inversion is possible. If set to 0, then inversion will only fail if the determininant of the matrix is exactly 0.0.

## Return Value

Return Value true if the invert succeeded; otherwise false.

## See Also

### Transforming the Matrix

- [invert()](professional_video_applications/fxmatrix44/invert().md)
- [transpose()](professional_video_applications/fxmatrix44/transpose().md)
