xxxxxxxxxx
function setup() {
createCanvas(800, 600);
background(255,183,143);
}
function draw() {
fill(223,255,255);//plate color
strokeWeight(2);
stroke(167,216,255);
circle(340,290,460);
fill(220,250,250);//middle of the plate
strokeWeight(1);
stroke(167,216,255);
circle(340,290,350);
fill(255,168,46);//first chocolate chip cookie(dough)
strokeWeight(1);//scale bigger cookie one cookie size 80
// another bigger cookie could be 1.2*80
// a smaller cookie could be say .8*80
stroke(255,157,46);
circle(340,290,80);
fill(113,68,36);//chocolate chips
strokeWeight(1);//multply by the same factor .2
stroke(0);
circle(340,290,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(325,280,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(325,280,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(350,280,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(325,310,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(350,310,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(310,290,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(340,265,10);
fill(113,68,36);//chocolate chips
strokeWeight(1);
stroke(0);
circle(365,290,10);
let SizeBiggest = 80;
let chocSize = 10;
MyCookies(320,200,SizeBiggest);
MyCookies(235,306,SizeBiggest);
MyCookies(430,333,1.2 * SizeBiggest);
MyCookies(295,398,0.8 * SizeBiggest);
MyCookies(420,200,0.7 * SizeBiggest);
chocChip(320,200,1.2*chocSize);//middle cookie on top
chocChip(335,190,1.2*chocSize);
chocChip(300,185,1.2*chocSize);
chocChip(300,210,1.2*chocSize);
chocChip(335,220,1.2*chocSize);
chocChip(235,306,1.2*chocSize);//cookie on the left
chocChip(255,300,1.2*chocSize);
chocChip(210,306,1.2*chocSize);
chocChip(220,330,1.2*chocSize);
chocChip(250,285,1.2*chocSize);
chocChip(295,398,0.8*chocSize);//cookie on the bottom left
chocChip(300,380,0.8*chocSize);
chocChip(280,380,0.8*chocSize);
chocChip(315,415,0.8*chocSize);
chocChip(280,415,0.8*chocSize);
chocChip(295,398,0.8*chocSize);//cookie on the bottom left
chocChip(300,380,0.8*chocSize);
chocChip(280,380,0.8*chocSize);
chocChip(315,415,0.8*chocSize);
chocChip(280,415,0.8*chocSize);
}