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

This method can be used to draw scaled down or enlarged jCanvaScript objects.
scale(float x)
return: object
Code
<script type="text/javascript">	
	function start_1(idCanvas)
	{
		jc('#myCircle_1')
			.scale(3);
	}
	function stop_1(idCanvas)
	{
		jc('#myCircle_1')
			.scale(1/3);
	}
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(100,120,50,'#ff0000',1)
			.id('myCircle_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
scale(float x, float y)
return: object
Code
<script type="text/javascript">	
	function start_2(idCanvas)
	{
		jc('#myCircle_2')
			.scale(4,2);
	}
	function stop_2(idCanvas)
	{
		jc('#myCircle_2')
			.scale(0.25,0.5);
	}
	function onload_2(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(100,120,50,'#ff0000',1)
			.id('myCircle_2');
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View
scale(float x, float y, positive int duration, object easing, object onstep, function fn)
return: object
Allows to animate scale of object. 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_3(idCanvas)
	{
		jc('#myCircle_3')
			.scale(4,2,6000);
	}
	function stop_3(idCanvas)
	{
		jc('#myCircle_3')
			.scale(0.25,0.5,6000);
	}
	function onload_3(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(100,120,50,'#ff0000',1)
			.id('myCircle_3');
	}
</script>
<canvas id="canvas_3" width="250px" height="265px">
</canvas>
View