Objects / arc
arc(x, y, radius, startAngle, endAngle, [anticlockwise], [color], [fill])
arc(float x, float y, float radius, float startAngle, float endAngle)
arc(float x, float y, float radius, float startAngle, float endAngle, string color)
arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, bool fill)
arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, string color)
arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, string color, bool fill)
arc(object parameters)

Create a jCanvaScript object,which draws and allows to manage arcs on canvas.
arc(float x, float y, float radius, float startAngle, float endAngle)
Code
<script type="text/javascript">
	function onload_1(idCanvas)
	{
		jc.start(idCanvas);
		jc.arc(80,100,60,50,180);
		jc.arc(80,50,30,100,95);
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
arc(float x, float y, float radius, float startAngle, float endAngle, string color)
Code
<script type="text/javascript">
	function onload_2(idCanvas)
	{
		jc.clear(idCanvas);
		jc.start(idCanvas);
		jc.arc(110,100,60,90,180,'#ff5533');
		jc.arc(80,50,30,15,95,'#443f27');
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View
arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, bool fill)
Code
<script type="text/javascript">
	function onload_3(idCanvas)
	{
		jc.start(idCanvas);
		jc.arc(110,100,60,90,180,true,true);
		jc.arc(80,50,30,15,95,false,true);
		jc.arc(60,100,60,90,180,true,false);
		jc.arc(80,150,30,15,95,false,false);
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_3" width="250px" height="265px"></canvas>
View
arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, string color)
Code
<script type="text/javascript">
	function onload_4(idCanvas)
	{
		jc.start(idCanvas);
		jc.arc(110,100,60,90,180,0,'rgba(0,99,175,0.2)');
		jc.arc(80,120,90,15,95,1,'rgba(205,43,18,0.4)');
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_4" width="250px" height="265px">
</canvas>
View
arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, string color, bool fill)
Code
<script type="text/javascript">
	function onload_5(idCanvas)
	{
		jc.start(idCanvas);
		jc.arc(110,100,60,90,180,1,'rgba(0,99,175,0.2)',1);
		jc.arc(80,50,90,15,95,0,'rgba(205,43,18,0.4)',1);
		jc.arc(60,100,60,90,180,1,'rgb(25,99,253)',0);
		jc.arc(80,150,30,15,95,0,'#ff0000',0);
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_5" width="250px" height="265px">
</canvas>
View
arc(object parameters)
Code
<script type="text/javascript">
	function onload_6(idCanvas)
	{
		jc.start(idCanvas);
		jc.arc({x:60,
			y:100,
			radius:60,
			startAngle:90,
			endAngle:180,
			anticlockwise:1,
			color: 'rgb(25,99,253)',
			fill:0});
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_6" width="250px" height="265px">
</canvas>
View