Need to animate canvas fill color dynamically
Hi all,
I need to animate cylinder canvas when I enter 10% in the text box it has fill like pouring milk in glass (Animation).
I have achieved creating cylinder in canvas and fill color but animation is part is not working.
Here is the code for animate ()
function animate() {
requestAnimationFrame(draw);
draw();
}
Here is my Code is avilable in JSfiddle
Thanks in advance