xxxxxxxxxx
let textArray=[];
let bodyColor;
let bodyArray=[];
function preload(){
}
function setup() {
createCanvas(400, 400);
bodyArray = [color(48, 8,194), color(48, 8, 194), color(8, 194, 117)];
bodyColor = random(bodyArray);
}
function draw() {
background(168, 224,227);
fill(
194, 76, 8
);
//hair//
rect(130, 100, 155, 135, 40);
fill(100, 171, 70);
circle(350,330,60);
/// body//
fill(bodyColor);
rect(174,200, 65, 300,500);
//trees//
fill(66, 28, 21)
rect(10,180, 35, 210, 100);
fill(105, 158, 47);
circle(30,150,100)
fill(66, 28, 21)
rect(50,170, 35, 220, 100);
fill(51, 107, 27);
triangle(40, 180, 68, 10, 96, 185);
//sza's face//
fill(133,87,35);
circle(203,200,90);
circle(180,219,1.3);
//right eye//
fill(255,255,255)
circle(179,190,15);
fill(0,0,0);
circle(177,190,10);
// left eye//
fill(255,255,255);
circle(220,190,15);
fill(0,0,0);
circle(217,190,10);
//nose//
line(200,215,200,190);
line(200,215,210,215);
fill(192,192,192);
circle(210,210,1);
//mouth//
fill(152,80,60);
circle(205,230,20);
fill(51,16,8);
stroke(1);
line(196,229,215,229);
//hair//
//grass//
fill(
8, 194, 26
);
rect(0, 380,400,700);
// shrub //
fill(100, 171, 70);
circle(360,350,60);
circle(385,310,60);
circle(350,350,60);
circle(380,350,60);
circle(400,350,60);
circle(480,265,60);
//feet//
fill(
48, 8, 194
);
circle(190,380,25);
fill(48, 8, 194);
circle(225,380,25);
// text//
text("girl i be lyin",200,150)
}
function mousePressed(){
bodyColor = random(bodyArray);
}