Functions / delPoint
delPoint(x, y, radius)
delPoint(int n)
delPoint(float x, float y, float radius)

delPoint(int n)
return: object
Delete point number n in points array.
Code
<script type="text/javascript">
	var count;
	function start_1(idCanvas)
	{
		if(!count--)stop_1(idCanvas);
		jc('#line_1')
			.delPoint(count);
	}
	function stop_1(idCanvas)
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
	function onload_1(idCanvas)
	{
		count=5;
		jc.start(idCanvas,true);
		points=[[10,50],
				[120,90],
				[200,250],
				[240,60],
				[105,15]]
		jc.line(points)
			.id('line_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
delPoint(float x, float y, float radius)
return: object
Delete point (x±radius,y±radius). Try to click on the example below.
Code
<script type="text/javascript">
	function start_2(idCanvas)
	{
		jc.clear(idCanvas);
		onload_2(idCanvas);
	}
	function stop_2(idCanvas)
	{
		jc.clear(idCanvas);
		onload_2(idCanvas);
	}
	function onload_2(idCanvas)
	{
		jc.start(idCanvas,true);
		points=[[10,50,35,12],
				[120,90,124,55],
				[200,250,542,67],
				[240,60,240,60],
				[105,15,15,105]]
		jc.qCurve(points,true)
			.click(function(point){
				this.delPoint(point.x,point.y,5);
			});
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View