/// <summary> /// Multiplies or screens the colors, depending on the backdrop color value. /// <remarks> /// Source colors overlay the backdrop while preserving its highlights and shadows. /// The backdrop color is not replaced but is mixed with the source color to reflect the lightness or darkness /// of the backdrop. /// </remarks> /// </summary> /// <param name="backdrop">The backdrop color.</param> /// <param name="source">The source color.</param> /// <returns> /// The <see cref="RgbaVector"/>. /// </returns> public static RgbaVector Overlay(RgbaVector backdrop, RgbaVector source) { Vector4 overlay = Vector4BlendTransforms.Overlay(backdrop.backingVector, source.backingVector); return(new RgbaVector(overlay)); }
/// <summary> /// Multiplies or screens the colors, depending on the backdrop color value. /// <remarks> /// Source colors overlay the backdrop while preserving its highlights and shadows. /// The backdrop color is not replaced but is mixed with the source color to reflect the lightness or darkness /// of the backdrop. /// </remarks> /// </summary> /// <param name="backdrop">The backdrop color.</param> /// <param name="source">The source color.</param> /// <returns> /// The <see cref="Rgba32"/>. /// </returns> public static Rgba32 Overlay(Rgba32 backdrop, Rgba32 source) { Vector4 overlay = Vector4BlendTransforms.Overlay(backdrop.ToVector4(), source.ToVector4()); return(PackNew(ref overlay)); }