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

[@microsoft/fast-colors](./fast-colors.md) &gt; [interpolateByColorSpace](./fast-colors.interpolatebycolorspace.md)

## interpolateByColorSpace() function

Interpolate by color space

<b>Signature:</b>

```typescript
export declare function interpolateByColorSpace(position: number, space: ColorInterpolationSpace, left: ColorRGBA64, right: ColorRGBA64): ColorRGBA64;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  position | number |  |
|  space | [ColorInterpolationSpace](./fast-colors.colorinterpolationspace.md) |  |
|  left | [ColorRGBA64](./fast-colors.colorrgba64.md) |  |
|  right | [ColorRGBA64](./fast-colors.colorrgba64.md) |  |

<b>Returns:</b>

[ColorRGBA64](./fast-colors.colorrgba64.md)
