I'm trying to create a blurry donut shape like this on a canvas with js. I tried
gradient.addColorStop(0, "rgba(0, 0, 0, .1)");
gradient.addColorStop(0.5, "rgba(128, 128, 128, .1)");
gradient.addColorStop(1, "rgba(0, 0, 0, .1)");
It has a distinct defined circle at the stop radius. What I want is a smooth falloff. Something like this..
Is this possible?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/cJpSbIP
Comments
Post a Comment