Functions / shadow
shadow(parameters)
shadow(object parameters)

shadow(object parameters)
return: object
Allows to add shadow to the object. parameters={x,y,blur,color};
Code
<script type="text/javascript">	
	function start_1(idCanvas)	
	{	
		jc('#myCircle_1')
			.shadow({
			x:5,
			y:5,
			blur:15,
			color:'#ff0000'
			});
	}
	function stop_1(idCanvas)
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}	
	function onload_1(idCanvas)
	{
		jc.start(idCanvas,true);
		jc.circle(100,120,50,true)
			.id('myCircle_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px"></canvas>
View