using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Media; namespace Microsoft.Research.DynamicDataDisplay.Common.Palettes { /// /// Represents a color palette, which can generate color by interpolation coefficient. /// public interface IPalette { /// /// Gets the color by interpolation coefficient. /// /// Interpolation coefficient, should belong to [0..1]. /// Color. Color GetColor(double t); /// /// Occurs when palette changes. /// event EventHandler Changed; } }