geometric-arc Questions
6
I was drawing a pie chart using canvas in Android. I am using the below code. I draw a text on each slice of that pie chart (draw arc on path), now I want to draw the text length wise i.e. from cen...
Garrity asked 21/4, 2011 at 10:46
4
Solved
I am trying to create an arc (variable number of degrees) that gradually goes from one color to another. From example from blue to red:
This is my code:
SweepGradient shader = new SweepGradient(...
Candace asked 27/1, 2012 at 16:58
4
Solved
Does anyone have a good algorithm for calculating the end point of ArcSegment? This is not a circular arc - it's an elliptical one.
For example, I have these initial values:
Start Point X = 0.25...
Mania asked 26/3, 2011 at 7:50
3
Solved
I imagine the solution to this is very simple, and apologize in advance if this is painfully obvious, but I can't seem to figure out how to set two different fillStyles for two different arcs ...I ...
Intemerate asked 18/12, 2011 at 4:1
4
Solved
Imagine a circle. Imagine a pie. Imagine trying to return a bool that determines whether the provided parameters of X, Y are contained within one of those pie pieces.
What I know about the arc:
I...
Most asked 7/6, 2011 at 19:48
3
Solved
I have this code at the end of a web page:
var canvas = document.getElementByID("canvas");
var ctx = canvas.getContext("2d");
canvas.style.width = $(window).width();
canvas.style.height = $(window...
Knell asked 11/6, 2011 at 22:38
5
Solved
I have the following custom view:
This I have achieved by using the Canvas' drawArc() method. However, with this drawArc() method I cannot limit the arc's inner radius.
What I'd like to have is...
Mendelevium asked 6/10, 2010 at 15:54
3
Solved
I want to draw an arc using canvas using a gradient fill. How can achieve this?
Cashbox asked 12/1, 2012 at 6:6
2
Solved
Here is my pseudo code:
var percentage = 0.781743; // no specific length
var degrees = percentage * 360.0;
var radians = degrees * Math.PI / 180.0;
var x = 50;
var y = 50;
var r = 30;
var s = 1.5...
Intuition asked 19/1, 2012 at 19:17
7
Solved
Does anyone know how to define an animated arc / circle in SVG, such that the arc starts at 0 degrees and ends at 360 degrees?
Horning asked 15/7, 2010 at 15:11
2
Solved
In svg I want to build a function which returns all parameters for an "arc element" in a path-d attribute. Given a start point, end point and a via-point. (3 points on a unstraight line are per def...
Keys asked 16/2, 2014 at 20:40
3
How could I fill the green portion between two arcs shown below using the paint and canvas methods?
Here is how I draw the two arcs, I also could figure out how to connect them with lines but I d...
Pout asked 12/7, 2013 at 21:0
3
Solved
I am writing an iPad app in which I am rendering XML objects that represent shapes into graphics on the screen. One of the objects I am trying to render is arcs. Essentially these arcs provide me w...
Gmur asked 17/5, 2012 at 21:41
3
I'm trying to find the three angles of the face of a person, based on a 2D image .
I'm using OpenCV with HaarCascade to find the face, eyes, nose and mouth.
But I don't found any geometric method ...
Seedtime asked 6/5, 2013 at 14:58
7
Solved
I need to draw concentric arcs of various sizes using raphael.js. I tried to understand the code behind http://raphaeljs.com/polar-clock.html, which is very similar to what I want, but, whithout co...
Pleasantry asked 21/2, 2011 at 0:55
2
Solved
I'm searching way to make arc with Bresenham's line algorithm. This algoritm draw perfect circle, but what if i need draw arc (from 0 to Pi) and rotate it for 30 degrees (for example)?
void DrawCi...
Vaden asked 9/12, 2011 at 15:23
2
Solved
I'm trying to implement SVG path calculations in Python, but I'm running into problems with Arc curves.
I think the problem is in the conversion from end point to center parameterization, but I ca...
Lenna asked 18/1, 2013 at 12:52
12
Solved
Using SVG path, we can draw 99.99% of a circle and it shows up, but when it is 99.99999999% of a circle, then the circle won't show up. How can it be fixed?
The following SVG path can draw 99.99% o...
Eudocia asked 20/4, 2011 at 23:57
2
Solved
Take a look at this picture:
I know p1, p2, and center, which are 2d points.
I also know the angle p1-center-p2 and the radius r.
How can I draw only the filled part of the arc using the canvas...
Endocardium asked 8/12, 2011 at 0:38
1
Solved
I have 2 questions
1)I am trying to draw an arc on an XYplot using the shape annotation. I used the XYLine annotation to draw a line and I want the arc to start where the line ends. I am having so...
Rights asked 6/7, 2011 at 23:29
1
Solved
I'm trying to make a sort of pie-chart shape on a canvas element, however I can't seem to find any function that does this by itself. I only seem to be able to draw full circles and segments. Is th...
Overby asked 3/6, 2011 at 17:11
2
I have two points of circle and center of this circle. I want to draw an arc between these points. Method drawArc is to simple and doesn't fit my purpose.
Anybody help?
Liguria asked 16/11, 2010 at 16:59
3
Solved
I've spent so many hours on this I can feel my sanity slowly slipping. So any help would be really truly appreciated.
I'll try and be as succinct as possible.
I have a circle on a 2D plane. I know...
Dichlorodifluoromethane asked 5/11, 2010 at 23:47
3
Solved
I'm trying to figure out an algorithm for finding a random point a set distance away from a base point. So for example:
This could just be basic maths and my brain not working yet (forgive me, ...
Rinee asked 5/8, 2010 at 12:22
1
© 2022 - 2024 — McMap. All rights reserved.