Functions / translateTo
translateTo(x, y, duration, easing, onstep, fn)
translateTo(float x, float y)
translateTo(float x, float y, positive int duration, object easing, object onstep, function fn)

translateTo(float x, float y)
return: object
Code
<script type="text/javascript">	
	function start_1(idCanvas)
	{
		jc('#myCircle_1')
			.translateTo(150,120);
	}
	function stop_1(idCanvas)
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(55,55,50,'#ff0000',1)
			.id('myCircle_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
translateTo(float x, float y, positive int duration, object easing, object onstep, function fn)
return: object
Allows to animate translations of object to the point. It is an alias of .animate() function. See examples of it for more information about different parameters of the function.
Code
<script type="text/javascript">	
	function start_2(idCanvas)
	{
		jc('#myCircle_2')
			.translateTo(150,120,600);
	}
	function stop_2(idCanvas)
	{
		jc.clear(idCanvas);
		onload_2(idCanvas);
	}
	function onload_2(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(55,55,50,'#ff0000',1)
			.id('myCircle_2');
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View