good day!
i just want to ask how to make a glowing effect using javascript, i'm kinda new to this stuffs 'coz i'm not really a javascript coder, i now only know the basics. i already did it on a text and it's working but when i tried to apply it to the one i'm doing right now it's not working.
here's the part of my codes where i'm trying to do the glowing effect, hope i could get some help here. thanks!
var c=Math.max(0,parseInt( -50+284*(z/PYRAMID_TOP)));
var gradient = ctx.createRadialGradient(90, 63, 100, 90, 63, 50);
gradient.addColorStop(0, "rgba(255,255,0, "+1+")");
gradient.addColorStop(1, "rgba(255,255,255,"+0+")");
ctx.fillStyle= gradient;
i just want to ask how to make a glowing effect using javascript, i'm kinda new to this stuffs 'coz i'm not really a javascript coder, i now only know the basics. i already did it on a text and it's working but when i tried to apply it to the one i'm doing right now it's not working.
here's the part of my codes where i'm trying to do the glowing effect, hope i could get some help here. thanks!
var c=Math.max(0,parseInt( -50+284*(z/PYRAMID_TOP)));
var gradient = ctx.createRadialGradient(90, 63, 100, 90, 63, 50);
gradient.addColorStop(0, "rgba(255,255,0, "+1+")");
gradient.addColorStop(1, "rgba(255,255,255,"+0+")");
ctx.fillStyle= gradient;