Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Glowing/Pulsating effect

Status
Not open for further replies.

ImEdu

Programmer
Aug 2, 2011
1
PH
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;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top