SharpMap.Rendering.Thematics.ColorBlend.ThreeColors C# (CSharp) Method

ThreeColors() public static method

Creates a linear gradient scale from three colors
public static ThreeColors ( System fromColor, System middleColor, System toColor ) : ColorBlend
fromColor System
middleColor System
toColor System
return ColorBlend
        public static ColorBlend ThreeColors(System.Drawing.Color fromColor, System.Drawing.Color middleColor, System.Drawing.Color toColor)
        {
            return new ColorBlend(new Color[] { fromColor, middleColor, toColor }, new float[] { 0f, 0.5f, 1f });
        }