Exemplo n.º 1
0
        /// <summary>
        /// Darkens the backdrop color to reflect the source color. Painting with white produces no change.
        /// </summary>
        /// <param name="backdrop">The backdrop color.</param>
        /// <param name="source">The source color.</param>
        /// <returns>
        /// The <see cref="Color"/>.
        /// </returns>
        public static Color ColorBurn(Color backdrop, Color source)
        {
            Vector4 burn = Vector4BlendTransforms.Burn(backdrop.ToVector4(), source.ToVector4());

            return(new Color(Pack(ref burn)));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Darkens the backdrop color to reflect the source color. Painting with white produces no change.
        /// </summary>
        /// <param name="backdrop">The backdrop color.</param>
        /// <param name="source">The source color.</param>
        /// <returns>
        /// The <see cref="ColorVector"/>.
        /// </returns>
        public static ColorVector ColorBurn(ColorVector backdrop, ColorVector source)
        {
            Vector4 burn = Vector4BlendTransforms.Burn(backdrop.backingVector, source.backingVector);

            return(new ColorVector(burn));
        }