Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7723837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:32:33+00:00 2026-06-01T04:32:33+00:00

i am trying to apply a blur shadow to a circle, but the thing

  • 0

i am trying to apply a blur shadow to a circle, but the thing is i just want the outer edge to have this blur/shadow affect, how can i do that? currently, the shadow is applied to all the borders
oh by the way, i am trying to animate…so the endingAngle below is supposed to keep changing to go from 0% circle to full circle..anyway that question is how i can specify just one side of the circle to have blur applied to…thanks

context.shadowBlur = 20; 
    context.shadowColor = "rgb(0, 255   , 0)";
context.beginPath();
context.arc(295, 295, 175, 1.5 * Math.PI, endingAngle, false);
context.lineWidth = 20;
context.strokeStyle = 'red';
context.stroke();
context.restore();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:32:34+00:00Added an answer on June 1, 2026 at 4:32 am

    This isn’t usually something you’d use a shadow for. You’re better off with a radial gradient.

    For example:

    http://jsfiddle.net/NEntS/

    The code:

    var rg = context.createRadialGradient(295, 295, 175, 295, 295, 175+20);
    rg.addColorStop(0, 'rgba(0,255,0,1)');
    rg.addColorStop(0.8, 'rgba(0,255,0,.2)');
    rg.addColorStop(1, 'rgba(255,255,255,0)');
    
    // draw gradient behind
    context.strokeStyle = rg;
    context.beginPath();
    context.arc(295, 295, 185, 1.5 * Math.PI, 2, false);
    context.lineWidth = 25;
    context.stroke();
    context.restore();
    
    // now stroke the red
    context.beginPath();
    context.arc(295, 295, 175, 1.5 * Math.PI, 2, false);
    context.lineWidth = 20;
    context.strokeStyle = 'red';
    context.stroke();
    context.restore();​
    

    I’m drawing an arc with a larger radius and line width that has a green-to-transparent gradient (from center to outer). That gives the same effect you want but only on the outside.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to apply smoothing filter to image . But I get this
I am trying to apply this sticky footer pattern to my template: http://ryanfait.com/sticky-footer/ But
I'm trying to apply a combobox to a small GTK3 interface, but I can't
im trying to apply this kind of notification with my website. but was wondering
i have been trying to apply the Gridview Tutorial but i'm stuck in an
I have been trying to apply one white space inside the span element, but
Trying to apply a 301 redirect to this url /Qx%40w%2C6M42VAwp3%40Rb%7B~cC4ure%60QWI9 but it's not liking
im trying to apply this JSON code to my Google Map: [ { stylers:
I am trying to apply filters to employees to show them just on the
I'm trying to apply a tooltip to a toolstripbutton but it keeps giving me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.