---
id: fast-colors.colorscale.getcolor
title: ColorScale.getColor() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [ColorScale](./fast-colors.colorscale.md) &gt; [getColor](./fast-colors.colorscale.getcolor.md)

## ColorScale.getColor() method

<b>Signature:</b>

```typescript
getColor(position: number, interpolationMode?: ColorInterpolationSpace): ColorRGBA64;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  position | number |  |
|  interpolationMode | [ColorInterpolationSpace](./fast-colors.colorinterpolationspace.md) |  |

<b>Returns:</b>

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