xxxxxxxxxx
249
function setup() {
createCanvas(400, 400);
noStroke();
}
function draw() {
background(127, 179, 213);
//mountain
push();
blendMode(MULTIPLY)
fill(208, 236, 231);
arc(120, 150, 60,60, HALF_PI + QUARTER_PI, QUARTER_PI,OPEN);
fill(162, 217, 206);
arc(80, 150, 70,80, HALF_PI + QUARTER_PI, QUARTER_PI,OPEN);
fill(115, 198, 182);
arc(40, 150, 80,100, HALF_PI + QUARTER_PI, QUARTER_PI,OPEN);
pop();
//background view
fill(252,243,207);
rect(0, 150, 400, 250);
//wave lines
/*
noFill();
push();
strokeWeight(8);
stroke(255, 102, 0);
curve(5, 26, 5, 26, 73, 24, 73, 61);
stroke(0);
curve(5, 26, 73, 24, 73, 61, 15, 65);
stroke(255, 102, 0);
curve(73, 24, 73, 61, 15, 65, 15, 65);
pop();
*/
noFill();
push();
stroke(236, 112, 99);
strokeWeight(8);
arc(100, 267, 100, 85, HALF_PI, PI+HALF_PI)
/*
noFill();
stroke(0);
strokeWeight(8);
arc(121, 307, 40, 85, PI, PI+HALF_PI)
*/
stroke(236, 112, 99);
line(102, 309, 112, 270);
stroke(205, 97, 85);
line(112, 270, 122, 309);
stroke(236, 112, 99);
line(122, 309, 132, 270);
stroke(205, 97, 85);
line(132, 270, 142, 309);
stroke(236, 112, 99);
line(142, 309, 152, 270);
stroke(205, 97, 85);
line(152, 270, 162, 309);
stroke(236, 112, 99);
line(162, 309, 172, 270);
stroke(205, 97, 85);
line(172, 270, 182, 309);
stroke(236, 112, 99);
line(182, 309, 192, 270);
stroke(205, 97, 85);
line(192, 270, 202, 309);
stroke(236, 112, 99);
line(202, 309, 212, 270);
stroke(205, 97, 85);
line(212, 270, 222, 309);
stroke(236, 112, 99);
line(222, 309, 232, 270);
stroke(205, 97, 85);
line(232, 270, 242, 309);
stroke(236, 112, 99);
line(242, 309, 252, 270);
stroke(205, 97, 85);
line(252, 270, 262, 309);
stroke(236, 112, 99);
line(262, 309, 272, 270);
stroke(205, 97, 85);
line(272, 270, 282, 309);
stroke(236, 112, 99);
line(282, 309, 292, 270);
stroke(205, 97, 85);
line(292, 270, 302, 309);
stroke(236, 112, 99);
line(302, 309, 312, 270);
stroke(205, 97, 85);
line(312, 270, 322, 309);
stroke(236, 112, 99);
line(322, 309, 332, 270);
stroke(205, 97, 85);
line(332, 270, 342, 309);
stroke(236, 112, 99);
line(342, 309, 352, 270);
stroke(205, 97, 85);
line(352, 270, 362, 309);
stroke(236, 112, 99);
line(362, 309, 372, 270);
stroke(205, 97, 85);
line(372, 270, 382, 309);
stroke(236, 112, 99);
line(382, 309, 392, 270);
stroke(205, 97, 85);
line(392, 270, 402, 309);
pop();
//wave line shadow
push();
stroke(27, 38, 49);
strokeWeight(2);//wave line
line(0, 313, 380, 313);
strokeWeight(1.5);
line(0, 318, 375, 318);
pop();
//tele's lines connection
fill(205, 97, 85);
quad(130, 215, 90, 220, 90, 230, 130, 235);
//tele' main body
fill(244, 208, 63);
push();//start trans
translate(width /2, height/2);
rotate(2.75);
arc(-10,10, 180, 180, 0, PI + QUARTER_PI, OPEN);
pop();//end trans
//tele' sbasement
fill(241, 196, 15);
rect(115.5, 179, 180, 65, 15,15,5,5);
push();//shadow lines
stroke(212, 172, 13);
strokeWeight(2.5);
line(287, 190, 287, 240);
strokeWeight(2.5);
line(150, 240, 287, 240);
pop();//end shadow lines
//tele's phone holder
fill(244, 208, 63);
rect(145, 60, 20, 105, 5);//left holder
rect(245, 60, 20, 105, 5);//roght holder
//tele's phone holder_horizental
fill(244, 208, 63);
rect(145, 75, 110, 30, 5);
//tele' number big circle
fill(254, 249, 231);
ellipse(205, 130, 100, 100);
//tele' number big circle_shadow
noFill();
push();
stroke(254, 249, 231);
strokeWeight(2);
arc(205, 130, 108, 108, 0, PI);
pop();
//tele'number small circles
fill(100, 30, 22);
ellipse(228, 103, 20, 20);
fill(123, 36, 28);
ellipse(210, 95, 20, 20);
fill(146, 43, 33);
ellipse(191, 98, 20, 20);
fill(169, 50, 38);
ellipse(175, 110, 20, 20);
fill(192, 57, 43);
ellipse(170, 130, 20, 20);//mid one-horizon
fill(203, 67, 53);
ellipse(175,150, 20, 20);
fill(231, 76, 60);
ellipse(191, 163, 20, 20);
fill(217, 136, 128);
ellipse(210, 165, 20, 20);
fill(230, 176, 170);
ellipse(228, 157, 20, 20);
fill(242, 215, 213);
ellipse(240,141, 20, 20);
//tele's number decoration
fill(244, 208, 63);
ellipse(205, 130, 35, 35);//mid small circle
noFill();
push();//start stroke
stroke(212, 172, 13);
strokeWeight(2);
arc(205, 130, 45, 45, PI, 0);
pop();//end stroke
//tele's number stopper
fill(236, 240, 241);
triangle(230, 123, 262, 130, 255, 100);
//tele's phone
fill(244, 208, 63);
arc(250, 330, 170, 170, 0, PI + QUARTER_PI, OPEN);
//phone;s listen part
fill(241, 196, 15);
push();
translate(10,10);
rotate(PI/8);
rect(252, 160, 185, 55, 20);
fill(244, 208, 63);
rect(390, 230, 115, 55, 20);
fill(249, 231, 159);
rect(270, 170, 25, 5, 5);
pop();
//line decorating
push();
stroke(27, 38, 49);
strokeWeight(2);//background lines
line(0, 150, 110, 150);
line(300, 150, 400, 150);
strokeWeight(1.5);
line(0, 155, 100, 155);
line(310, 155, 400, 155);
strokeWeight(3);//tele's body lines
line(128, 245, 400, 245);
strokeWeight(2);
line(300, 240, 400, 240);
strokeWeight(1.5);
line(310, 235, 400, 235);
pop();
//highlight
fill(254, 249, 231);
rect(130, 190, 45, 5, 5);
}