How to realize the color gradient (deepening) of the circular progress bar

how to realize the circular progress bar with gradual change of color? now we can not achieve the effect by using canvas,createLinearGradient,. I don"t know if there is any good way to achieve it, in Mini Program.


can be drawn using Canvas's Pattern.

Html5-canvas- draws the torus gradual progress bar

Menu