Functions / mousedown
mousedown(fn)
mousedown(function fn)
mousedown( )

Its one of the functions that works with events. For correct work of such functions it is necessary to specify at canvas initialization frames per second - fps: jc.start (idCanvas, fps).
mousedown(function fn)
return: object
The mousedown event is sent to an object when the mouse pointer is over the jCanvaScript object, and the mouse button is pressed. Fn is a function that run whith this event.
Code
<script type="text/javascript">	
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		var text=jc.text("",10,10);
		jc.circle(100,120,50,'#ff0000',1)
			.mousedown(function(point){
				this.color('#00ff00');
				text.string('x='+point.x+', y='+point.y);
			});
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
mousedown( )
return: object
Code
<script type="text/javascript">	
	function start_2(idCanvas)
	{
		jc('#myCircle_2').mousedown();
	}
	function stop_2(idCanvas)
	{
		jc('#myCircle_2')
			.color('#ff0000');
	}
	function onload_2(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(100,120,50,'#ff0000',1)
			.id('myCircle_2')
			.mousedown(function(){
				this.color('#00ff00');
			});
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View