You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we achieve color fill like the apple's stock app shows for charts? It's solid color from the top but gets faded at the bottom. I'm able to do something similar but idk how to make it fade at the bottom.
help is appreciated. Thanks!
var myGradient = new LinearGradientPaint(
new[]
{
new SKColor(0, 255, 0, 20), // Fully opaque green at the top
new SKColor(0, 255, 0, 0), // Semi-transparent green at the bottom
},
new SKPoint(0, 0f), // Gradient start point (top)
new SKPoint(0, 0.8f) // Gradient end point (bottom)
);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Can we achieve color fill like the apple's stock app shows for charts? It's solid color from the top but gets faded at the bottom. I'm able to do something similar but idk how to make it fade at the bottom.
help is appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions