Objects / pattern
pattern(img)
pattern(image img)

Create a jCanvaScript object - pattern. It cant draws anything, but you can use it as a color for other jCanvaScript objects.
pattern(image img)
Code
<script type="text/javascript">
	function onload_1(idCanvas)
	{
		var img_1=new Image();
		img_1.src="/data/images/logo.png";
		img_1.onload=function(){
		jc.start(idCanvas);
		var pattern=jc.pattern(img_1);
		jc.rect(1,1,248,263,pattern,1);
		jc.start(idCanvas);
		}
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View