Functions / canvas clear
clear
clear( )

clear( )
return: jCanvaScript canvas
Function to clear the canvas and delete all jCanvaScript objects on it.
Code
<script type="text/javascript">	
	function onload_1(idCanvas)	
	{	
		var canvas=jc.canvas(idCanvas).start();
		jc.circle(100,120,50);		
		canvas.frame();
	}
	function start_1(idCanvas)	
	{	
		jc.canvas(idCanvas).clear();
	}
	function stop_1(idCanvas)	
	{	
		onload_1(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View