Functions / composite
composite(type)
composite(string type)
composite( )

composite(string type)
return: object
Code
<script type="text/javascript">	
	var compositeTypes = [
	  'source-over','source-in','source-out','source-atop',
	  'destination-over','destination-in','destination-out','destination-atop',
	  'lighter','darker','copy','xor'
	];
	var i=0;
	function start_1(idCanvas)
	{
		i++;
		if(i>11)i=0;
		jc('#myCircle')
			.composite(compositeTypes[i]);
	}
	function stop_1(idCanvas)
	{
		i--;
		if(i<0)i=11;
		jc('#myCircle')
			.composite(compositeTypes[i]);
	}
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.rect(30,30,70,120,1)
			.id('myRect_1');
		jc.circle(150,150,70,"#FF0000",1)
			.id('myCircle');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
composite( )
return: composite type