Answer the question
In order to leave comments, you need to log in
How to wrap a png image around its canvas edges?
pic = new Image();
pic.src = image;
reset(pic.width, pic.height);
ctx.drawImage(pic, 0, 0);
ctx.globalCompositeOperation = "destination-atop";
ctx.fillStyle="blue";
ctx.fillRect(0,0,1200,1200);
Answer the question
In order to leave comments, you need to log in
Set the css property of the canvas layer to border-radius: X% or use a quadratic bezier curve - the method for drawing such a curve is built in called quadraticCurveTo.
fillRect is not an option, simply because it doesn't round.
Isn't just painting the inside an option?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question