/// <summary> /// Brightens the backdrop color to reflect the source color. Painting with black produces no changes. /// </summary> /// <param name="backdrop">The backdrop color.</param> /// <param name="source">The source color.</param> /// <returns> /// The <see cref="RgbaVector"/>. /// </returns> public static RgbaVector ColorDodge(RgbaVector backdrop, RgbaVector source) { Vector4 dodge = Vector4BlendTransforms.Dodge(backdrop.backingVector, source.backingVector); return(new RgbaVector(dodge)); }
/// <summary> /// Brightens the backdrop color to reflect the source color. Painting with black produces no changes. /// </summary> /// <param name="backdrop">The backdrop color.</param> /// <param name="source">The source color.</param> /// <returns> /// The <see cref="Rgba32"/>. /// </returns> public static Rgba32 ColorDodge(Rgba32 backdrop, Rgba32 source) { Vector4 dodge = Vector4BlendTransforms.Dodge(backdrop.ToVector4(), source.ToVector4()); return(PackNew(ref dodge)); }