xxxxxxxxxx
var sz;//Size of each square
var stCl;// Stroke Color
var gap;// the gap between tiles
function setup() {
createCanvas(600, 600);
//Size of each square in max
sz=100;
stCl="#000000";
//gap
gap= 4 ;
//Disable loop;
noLoop();
}
function draw (){
background(250,248,245);// smokey white
// Complete remaining lines with for loops
for(var j =0; j< 5; j= j+1)
drawSquares();
}
function drawSquares() {
// make the squares centered from their center point
rectMode(CENTER);
//set stroke color
stroke(stCl);
sz=100;
push();
translate(sz/2,sz/2);
// create for loop drawing 10 squares in each other
for(var i= 0; i < 10; i=i+ 1){
// create a dice
var chanceFac= random(0,1);
//Check the random Value
}
}