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 6844435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:22:41+00:00 2026-05-27T00:22:41+00:00

Good day to all. I need to create a graphical countdown in js. The

  • 0

Good day to all.

I need to create a graphical countdown in js. The algorithm for the timer is ordinary. But I need to create a circle filled with a color (lets say green, doesn’t matter) and while the counter goes down the circle gets fill with another color. So what I basically need to do is fill a circle with color.

First I thought to simulate some lines inside the circle (from center to margin) and fill it with them. The problem is how to generate lines… and I got to the conclusion that I should generate points to generate lines to fill the circle and even though the code is easy to write sounds like quite a resource eater.

Second option would be to use a drawing library but I fear that it would do the same thing.

So… any ideas how to implement this without wasting too much resources?

Note: The circle must be fill in a circular way… like skill reuse in games for example. (like a clock)

  • 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-05-27T00:22:42+00:00Added an answer on May 27, 2026 at 12:22 am

    The best way I can think of is to use the Raphael graphis library which allows your code to draw SVG (or VML on older IE). Look at the source of this demo (which basically does what you want):

    http://raphaeljs.com/polar-clock.html

    The key to understanding the code is understanding this line:

    path = [["M", 300, 300 - R], ["A", R, R, 0, +(alpha > 180), 1, x, y]];
    

    And the key to understanding that line is to first understand SVG path specification:

    http://www.w3.org/TR/SVG/paths.html

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

Sidebar

Related Questions

Good day to all, I am having difficulty finding information on how to create
Good day to all. I have a movie that need 2 be displayed with
Good day to all. I have a booking site. Here I need to integrate
Good Day All we are trying to do is inside a trigger make sure
Good morning all, After a day of googling, I’m at a loss. I decided
Good day all, I am tasked with building a slider for our site. Here
Good day all; I have an UIImageView that I animate around a large UIView.
After working in good ole' c++ all day, I like to have a few
Good day all, I have written an application that i require to have a
Good Day All, I’m new to programming. I’m using Visual Studio 2010. I’m taking

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.