Ejemplo n.º 1
0
        /// <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="Color"/>.
        /// </returns>
        public static Color Normal(Color backdrop, Color source)
        {
            Vector4 normal = Vector4BlendTransforms.Normal(backdrop.ToVector4(), source.ToVector4());

            return(new Color(Pack(ref normal)));
        }
Ejemplo n.º 2
0
        /// <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="ColorVector"/>.
        /// </returns>
        public static ColorVector Normal(ColorVector backdrop, ColorVector source)
        {
            Vector4 normal = Vector4BlendTransforms.Normal(backdrop.backingVector, source.backingVector);

            return(new ColorVector(normal));
        }