Random zebra
山辺氏の授業ページから
https://gyazo.com/0f86aad2c6be7650ad8a4ceea95b5d7f
実行
code:rz.js
function setup(){
createCanvas(600,600);
background(128);
}
function draw(){
x = random(0,width);
y = random(0,height);
w = random(2,20);
noStroke();
if(x % 60 < 35)//xを60で割った余りが35未満だったら
fill(0,0,0);
else
fill(255,255,255);
ellipse(x, y, w, w);
}