Drawing an 2d cone in android like a pie chart.
<p>I am trying to draw a dynamic radar, but I can't get the cone shape to draw properly. I can get the two lines to work fine, but I can't get the shading between them to work.</p>

<p>My Goal:</p>

<p><img src="http://i.stack.imgur.com/0Zoij.png" alt="enter image description here"></p>

<p>What I am getting:</p>

<p><img src="http://i.stack.imgur.com/mWoWt.png" alt="enter image description here"></p>

<p>And this is my code:</p>

<pre><code>paint.setColor(Color.WHITE);
RectF oval = new RectF(0,0,200,200);
canvas.drawArc(oval,(float)globalAzimuth+26, (float)globalAzimuth-26,false,paint);
</code></pre>

<p>globalAzimuth is the direction the phone is facing.  The radar spins as the phone does. The lines spin fine and synchorinized, but the arc just gets bigger and is obviously terribly off. </p>

<p>Does anyone know how to do this?</p>
