/// <summary> /// The blending formula simply selects the source color. /// </summary> /// <param name="backdrop">The backdrop color.</param> /// <param name="source">The source color.</param> /// <returns> /// The <see cref="RgbaVector"/>. /// </returns> public static RgbaVector Normal(RgbaVector backdrop, RgbaVector source) { Vector4 normal = Vector4BlendTransforms.Normal(backdrop.backingVector, source.backingVector); return(new RgbaVector(normal)); }
/// <summary> /// The blending formula simply selects the source color. /// </summary> /// <param name="backdrop">The backdrop color.</param> /// <param name="source">The source color.</param> /// <returns> /// The <see cref="Rgba32"/>. /// </returns> public static Rgba32 Normal(Rgba32 backdrop, Rgba32 source) { Vector4 normal = Vector4BlendTransforms.Normal(backdrop.ToVector4(), source.ToVector4()); return(PackNew(ref normal)); }