Functions / imageData setPixel
setPixel(x, y, color)
setPixel(float x, float y, string color)

setPixel(float x, float y, string color)
return: object
Code
<script type="text/javascript">
	function onload_1(idCanvas)
	{
		jc.start(idCanvas);
		var imgData=jc.imageData(90,90)
		var r=10;
		var g=10;
		var b=10;
		for(var i=0;i<90;i++)
		for(var j=0;j<90;j++)
		{	
			r+=i;
			g+=i;
			b+=i+j;
			imgData.setPixel(i,i+j,'#'+r+','+g+','+b);
		}
		imgData.putData(100,100);
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View