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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:17:06+00:00 2026-06-01T17:17:06+00:00

I know how to draw a partial circle(arc) on a HTML5 Canvas but how

  • 0

I know how to draw a partial circle(arc) on a HTML5 Canvas but how do I draw a stretched arc on a Canvas?

How do I draw an arc like the one below(where the arc is stetched/the radius changes)?
enter image description here

This is how I draw a normal arc, maybe theres a function that can stretch this arc?

context.moveTo(centerX, centerY);
context.arc(centerX, centerY, radius, startingAngle, endingAngle, false);       
context.closePath();
  • 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-01T17:17:07+00:00Added an answer on June 1, 2026 at 5:17 pm

    You can use transforms. As in this live example.

    context.save() ;
    context.translate(150,150) ;
    context.scale(2,1) ;
    context.translate(-150,-150) ;
    context.moveTo(150, 150);
    context.arc(150, 150, 50, 0, 3*Math.PI/4, true);       
    context.closePath();
    context.stroke() ;
    context.restore() ;
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to know how to draw two PNG pictures onto the screen. My
I know how to draw a rectangle and add it to a DisplayObjectContainer, but
I know how to draw lines/rect in a single view. But I'm lost in
I know how to draw text in XNA but I am implementing a level
Short question : I know how to draw text on a wx.Bitmap, but how
I would like to know how to draw text/label at specific angle using cocos2d.
Does any one know how to draw a class diagram by call stack in
There are three main ways I know of to draw a simple circle in
I know how to draw a button in C++ but how would i make
I would like to know how to draw a triangle with a transparent background

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.