/    Sign up×
Community /Pin to ProfileBookmark

Glowing/Pulsating effect

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;

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ImEdu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...