Skip to content

Instantly share code, notes, and snippets.

View alexandresanlim's full-sized avatar
👓
Learning WEB3

Alexandre Sanlim alexandresanlim

👓
Learning WEB3
View GitHub Profile
@sthewissen
sthewissen / ColorShifts.cs
Created April 17, 2020 11:15
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);