Reputation: 306
I have a SVG path and Paint to draw path on canvas and I used
canvas.drawPath(path.getSvgPath(), path.getSvgFillPaint());
it is work properly and now I want to add animation when fill path with given Paint. loke Happy Color App Happy Color
if you have a any idea please reply this.
thank you
Upvotes: 0
Views: 382
Reputation: 1675
Use a timer or thread or Animate class to change what path.getSvgFillPaint's fillOpacity gradually down to 0. Every time when the fillOpacity changes, call View's postInvalidate to redraw the canvas, you will see it fade out gradually.
Upvotes: 1