Skip to content

Instantly share code, notes, and snippets.

@sthewissen
Created April 17, 2020 11:15
Show Gist options
  • Save sthewissen/5165599033f0709bcdd48e10b598d337 to your computer and use it in GitHub Desktop.
Save sthewissen/5165599033f0709bcdd48e10b598d337 to your computer and use it in GitHub Desktop.
Color shift animation
await pancake.ColorTo(Color.FromHex("#8845b8"), Color.FromHex("#c23569"), c => pancake.BackgroundGradientStartColor = c, 5000, Easing.Linear);
await pancake.ColorTo(Color.FromHex("#f52e33"), Color.FromHex("#ff9e4f"), c => pancake.BackgroundGradientEndColor = c, 5000, Easing.Linear);
await pancake.ColorTo(Color.FromHex("#c23569"), Color.FromHex("#8845b8"), c => pancake.BackgroundGradientStartColor = c, 5000, Easing.Linear);
await pancake.ColorTo(Color.FromHex("#ff9e4f"), Color.FromHex("#f52e33"), c => pancake.BackgroundGradientEndColor = c, 5000, Easing.Linear);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment