---
id: fast-colors.interpolatexyz
title: interpolateXYZ() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [interpolateXYZ](./fast-colors.interpolatexyz.md)

## interpolateXYZ() function

Interpolate by XYZ color space

<b>Signature:</b>

```typescript
export declare function interpolateXYZ(position: number, left: ColorXYZ, right: ColorXYZ): ColorXYZ;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  position | number |  |
|  left | [ColorXYZ](./fast-colors.colorxyz.md) |  |
|  right | [ColorXYZ](./fast-colors.colorxyz.md) |  |

<b>Returns:</b>

[ColorXYZ](./fast-colors.colorxyz.md)
