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

  • Home
  • SEARCH
  • 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 8751445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:03:03+00:00 2026-06-13T13:03:03+00:00

Here is example: http://jsfiddle.net/pcNzb/9/ I just study, so i must have missed something or

  • 0

Here is example:
http://jsfiddle.net/pcNzb/9/

I just study, so i must have missed something or have done something wrong. 🙂

See the gap between arcs? I’m building full circle with small arcs. I know how to fix it but i guess it’s better to avoid redrawing full arc on each step or i’m wrong?

I found another solution, with offset. Setting offset moveToRad+0.009

ctx.arc(x(),y(),radius,-moveFromRad,-moveToRad-0.009,antiClockwise);

to overlap one arc part over another, but that becomes visible if i’m using rgba alpha to 0.5 for example.

Is there some else fix for it excepting the full circle redraw on each step?

  • 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-13T13:03:04+00:00Added an answer on June 13, 2026 at 1:03 pm

    Is there some else fix for it excepting the full circle redraw on each step?

    In short no, not if you want it to work cross-browser and look nice with semi-transparent colors.

    That means, modifying your code to clear on each draw and eliminate the start angle step: http://jsfiddle.net/pcNzb/10/

    see the two !!!-marked comments:

    var interval=setInterval(function(){
        if(stop) {
            return;
        }
        // Log current state
        log.prepend('<tr><td>We are at PIradians '+moveToRad/Math.PI+'</td><td>, radians '+moveToRad+'</td><td>, degrees '+Math.round(moveToRad*180/Math.PI)+'</td></tr>');
    
        // console.log('We are at PIradians',moveToRad/Math.PI,', radians',moveToRad,', degrees',Math.round(moveToRad*180/Math.PI));
    
        // Clear after full cycle
        if(moveToRad>=fullCycle){
            cycle();
        }
        clear(); // !!! gotta clear!
    
        // Create arc
        // 0.01 fix offset, to remove that gap between arc parts
        ctx.arc(x(),y(),radius,-moveFromRad,-moveToRad,antiClockwise);
    
        // Draw arc line
        ctx.stroke();
    
        // Recalculate text width
        txtsizes=ctx.measureText(cycles);
        // Text width/2 and font-size / 3 to ~center the text in circle
        ctx.fillText(cycles, x(-txtsizes.width/2), y(font_height/3));
    
        // Don't redraw full arc from the start, draw from the last point
        //moveFromRad+=step; // !!! no more me!
        // Increment radian for the next step
        moveToRad+=step;
    
        ctx.beginPath();                
    },period);  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an autocomplete textbox inside some tabs. See here for an example: http://jsfiddle.net/fTQ26/3/
I have got an example here: http://jsfiddle.net/cByhZ/ As you can see the buttons value
Here's an example: http://jsfiddle.net/7g8GD/1/ Once you have entered an invalid input and hit enter
You can see the example here: http://jsfiddle.net/8EHED/8/ This is a tricky problem because I
I'm working on a jquery carousel. You can see the example here: http://jsfiddle.net/6fwbS/2/ Click
Here an example http://jsfiddle.net/kSuS7/2/ It's possible to be done with CSS/jQuery if text in
See example here: http://jsfiddle.net/KK36F/2/ How to solve this?
i have this simple example here : http://jsfiddle.net/pTyvc/1/ i don't want the sub_menu div
Example here: http://jsfiddle.net/KyW6c/2/ I have an ordered list. Each list item is a project
You can see an example here: http://jsfiddle.net/TuH95/5/ When you hover over the li element

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.