Answer the question
In order to leave comments, you need to log in
How to make a shadow without painting over the entire figure (canvas)?
Good afternoon.
ctx.translate(theCanvas.width/2, theCanvas.height/2);
ctx.beginPath();
ctx.strokeStyle = "#444";
ctx.arc(0, 0, 130, 0, Math.PI * 2);
ctx.shadowColor = "#222";
ctx.shadowOffsetX = 0;
ctx.shadowOffsetY = 0;
ctx.shadowBlur = 25;
//ctx.fill();
ctx.stoke()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question