Class HeatmapColormaps
Extension methods providing pre-built colormaps for HeatMapMonitor.
Sequential (low-to-high): Viridis, Inferno, Plasma, Magma, Turbo, Hot, Greyscale Diverging (negative-zero-positive): BlueWhiteRed, CoolWarm, PurpleWhiteGreen
Usage: heatmap.UseViridis(); heatmap.UseBlueWhiteRed(); heatmap.UseGreyscale();
Inherited Members
Namespace: MOSAIC.Visualization.Heatmap
Assembly: MOSAIC.dll
Syntax
public static class HeatmapColormaps
Methods
ApplyAnchored(HeatMapMonitor, string[], int)
Declaration
private static void ApplyAnchored(HeatMapMonitor hm, string[] anchorHex, int levels)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| string[] | anchorHex | |
| int | levels |
Lerp(in SKColor, in SKColor, float)
Declaration
private static SKColor Lerp(in SKColor c1, in SKColor c2, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| SKColor | c1 | |
| SKColor | c2 | |
| float | t |
Returns
| Type | Description |
|---|---|
| SKColor |
UseBlueWhiteRed(HeatMapMonitor, int)
Blue → white → red. Classic diverging colormap (RdBu style).
Declaration
public static void UseBlueWhiteRed(this HeatMapMonitor hm, int levels = 257)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseCoolWarm(HeatMapMonitor, int)
Cool blue → neutral grey → warm red. Moreland's CoolWarm — perceptually balanced diverging.
Declaration
public static void UseCoolWarm(this HeatMapMonitor hm, int levels = 257)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseGreyscale(HeatMapMonitor, int)
Greyscale — black → white. Simple and universally readable.
Declaration
public static void UseGreyscale(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseHot(HeatMapMonitor, int)
Hot — black → red → yellow → white. Classic thermal camera look.
Declaration
public static void UseHot(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseInferno(HeatMapMonitor, int)
Inferno — perceptually uniform. Black → purple → orange → yellow.
Declaration
public static void UseInferno(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseMagma(HeatMapMonitor, int)
Magma — perceptually uniform. Black → purple → salmon → white.
Declaration
public static void UseMagma(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UsePlasma(HeatMapMonitor, int)
Plasma — perceptually uniform. Purple → pink → orange → yellow.
Declaration
public static void UsePlasma(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UsePurpleWhiteGreen(HeatMapMonitor, int)
Purple → white → green. Diverging, good for signed data with a meaningful zero.
Declaration
public static void UsePurpleWhiteGreen(this HeatMapMonitor hm, int levels = 257)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseRainbow(HeatMapMonitor, int)
Rainbow — blue → cyan → green → yellow → red. HSV-based (not perceptually uniform).
Declaration
public static void UseRainbow(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseTurbo(HeatMapMonitor, int)
Turbo — rainbow-like but more perceptually uniform than raw HSV. Blue → cyan → green → yellow → red.
Declaration
public static void UseTurbo(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |
UseViridis(HeatMapMonitor, int)
Viridis — perceptually uniform, colorblind-friendly. Purple → teal → yellow.
Declaration
public static void UseViridis(this HeatMapMonitor hm, int levels = 256)
Parameters
| Type | Name | Description |
|---|---|---|
| HeatMapMonitor | hm | |
| int | levels |