How can I draw an image inside a circle? If I do:
context.beginPath();
context.arc((e.pageX),(e.pageY),161,0,Math.PI*2,true);
context.closePath();
How can I then use fill() to fill it with my drawn image?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I did this the other day for a big thing I’m making;
Worked perfect for me.
Here’s a more complex version of it that I made which does image caching too, https://jsfiddle.net/jaredwilli/ex5n5/