# HeatmapRangeColorProvider.GetColor method

Returns a color interpolated between the two range stops that surround the specified value.

**Namespace:** [`Eremex.AvaloniaUI.Charts`](../index.md)  
**Assembly:** `Eremex.Avalonia.Charts.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public Color GetColor(double value, IMinMaxValues range)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| value | `double` | The value displayed by the cell. |
| range | `IMinMaxValues` | The range of the values displayed by the heatmap. |

## Returns

| type | description |
| --- | --- |
| `Color` | The color of the cell. Values below the first range stop take the color of that stop, and values at or above the last range stop take the color of that stop. |

## See Also

* class [HeatmapRangeColorProvider](../HeatmapRangeColorProvider.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
