---
title: "setPath(_:toColor:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fxpathapi_v3/setpath(_:tocolor:)"
---

# setPath(_:toColor:)

Sets the color the host app uses to draw the path with the given ID.

## Declaration

```swift
func setPath(_ pathID: FxPathID!, toColor newColor: FxPathColor) throws
```

## Parameters

- `pathID`: The ID of the path you want to draw in a different color.
- `newColor`: The FxPathColor to use to draw the path in.
