var y = new Array();
var x = new Array();
var z = new Array();
var num;
function sample(){
tx = 0;
for (s=1;s<6;s++ ){
for(sx=1;sx<9;sx++){
tx = tx + 1;
x[tx] = sx;
y[tx] = s;
z[tx] = 0;
}
}
var timer;
var delay = 100;
var loop = function () {
paint();
clearTimeout(timer);
timer = setTimeout(loop, delay);
}
loop();
}
function paint(){
var sub=new svgpaint();
str="<svg width=\"500\" height=\"500\">";
for(s=1;s<41;s++){
str=str+sub.rect(50*x[s]-50,50*y[s]-50,50,50,"red");
}
str=str+"</svg>";
$("#memo").html(str);
}
最終更新:2016年06月11日 03:36