A UWP sample that blends Gradient with BlendEffect using Composition API.
Branch: master
Clone or download
Latest commit 037b2ff Feb 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AnimatedBackgroundDemo Gradient with BlendEffect. Feb 1, 2019
.gitattributes Add .gitignore and .gitattributes. Jan 27, 2019
.gitignore Add .gitignore and .gitattributes. Jan 27, 2019
AnimatedBackgroundDemo.sln Add project files. Jan 27, 2019
README.md Create README.md Feb 1, 2019

README.md

AnimatedBackgroundDemo

A UWP sample that blends Gradient with BlendEffect using Composition API.

var graphicsEffect = new BlendEffect()
{
    Mode = BlendEffectMode.Screen,
    Foreground = new CompositionEffectSourceParameter("Main"),
    Background = new CompositionEffectSourceParameter("Tint"),
};

Demo