# HeatmapGrayscaleColorProvider.GetColor method

Returns a shade of gray that corresponds to the position of the specified value within the range. The minimum value maps to black, and the maximum value maps to white.

**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. |

## See Also

* class [HeatmapGrayscaleColorProvider](../HeatmapGrayscaleColorProvider.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
