Functions / reverse
reverse
reverse( )

reverse( )
return: group
Returns the group of objects that were dropped during the last search with .find() function.
Code
<script type="text/javascript">	
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(50,50,50,1);
		jc.circle(100,50,50,1);
		jc.circle(100,100,50);
		jc.rect(100,120,50,60,1);		
	}
	function start_1(idCanvas)	
	{
		jc({canvas:idCanvas})
			.find({attrs:{
				proto:'circle',
				fill:{val:0,rel:'>'}
			}})
				.color('#ff0000')
			.reverse()
				.color('#00ff00');
	}
	function stop_1(idCanvas)	
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View