MonoDevelop.Ide.Editor.Highlighting.ColorScheme.AlphaBlend C# (CSharp) Method

AlphaBlend() static private method

static private AlphaBlend ( MonoDevelop.Components.HslColor fore, MonoDevelop.Components.HslColor back, double alpha ) : MonoDevelop.Components.HslColor
fore MonoDevelop.Components.HslColor
back MonoDevelop.Components.HslColor
alpha double
return MonoDevelop.Components.HslColor
		internal static HslColor AlphaBlend (HslColor fore, HslColor back, double alpha)
		{
			var fc = (Cairo.Color)fore;
			var bc = (Cairo.Color)back;
			return new HslColor (
				(1.0 - alpha) * bc.R + alpha * fc.R,
				(1.0 - alpha) * bc.G + alpha * fc.G,
				(1.0 - alpha) * bc.B + alpha * fc.B);
		}