using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
namespace Microsoft.Research.DynamicDataDisplay.Common.Palettes
{
///
/// Contains some predefined linear palettes.
///
public static class LinearPalettes
{
private const double geoHeight = 8845 + 400;
private static LinearPalette geoHeightsPalette = new LinearPalette(
Color.FromRgb(1, 99, 69), Colors.White,
new LinearPaletteColorStep(Color.FromRgb(28, 128, 52), (50 + 400) / geoHeight),
new LinearPaletteColorStep(Color.FromRgb(229, 209, 119), (200 + 400) / geoHeight),
new LinearPaletteColorStep(Color.FromRgb(160, 66, 1), (1000 + 400) / geoHeight),
new LinearPaletteColorStep(Color.FromRgb(129, 32, 32), (2000 + 400) / geoHeight),
new LinearPaletteColorStep(Color.FromRgb(119, 119, 119), (4000 + 400) / geoHeight),
new LinearPaletteColorStep(Color.FromRgb(244, 244, 244), (6000 + 400) / geoHeight));
///
/// Gets the palette for geo height map visualization.
///
/// The geo heights palette.
public static LinearPalette GeoHeightsPalette { get { return geoHeightsPalette; } }
}
}