xxxxxxxxxx
189
/*
Jingjing Sun
Partner: Ishraq Ashtarian
Object:
Had a necklace that my father brought it as a souvenir from South Korea. The cord was nut-brown fabric and a 2*1inch carved gourd (sort of bamboo) face mask attached to it. The face was brown with a sly smile, closed eyes, and a hook-nosed.
*/
function setup() {
createCanvas(400, 400);
blendMode(BLEND);
}
function draw() {
background(106, 90, 205);
smooth();
strokeWeight(3)
textSize(20);
fill(0);
text("Ishraq's necklace", 130, 350);
//Chaine5
fill(106, 90, 205);
let x1 = 10,
x2 = 160,
x3 = 291,
x4 = 390;
let y1 = 390,
y2 = 120,
y3 = 205,
y4 = 30;
bezier(x1, y1, x2, y2, x3, y3, x4, y4);
fill(255, 215, 0);
let steps = 20;
for (let i = 0; i <= steps; i++) {
let t = i / steps;
let x = bezierPoint(x1, x2, x3, x4, t);
let y = bezierPoint(y1, y2, y3, y4, t);
circle(x, y, 13);
}
push();
translate(0.9, 2);
//Cord, nut-brown
fill(90, 56, 38);
ellipse(210, 130, 150, 190);
//rotate(PI/4);
pop();
//Facemasks, browm
fill(207, 160, 118);
ellipse(210, 180, 120, 150);
//eyes
strokeWeight(3);
line(170, 150, 190, 150);
line(230, 150, 250, 150);
//hooked nose
line(210, 170, 210, 210);
line(210, 210, 220, 210);
//sly smile
beginShape();
vertex(190, 220);
vertex(195, 225);
vertex(200, 225);
vertex(215, 225);
vertex(220, 225);
vertex(225, 225);
vertex(230, 220);
endShape();
//cord - uper left
fill(11, 102, 35);
rect(160, 235, 9, 9);
rect(160, 244, 9, 9);
rect(160, 253, 9, 9)
rect(160, 262, 9, 9)
rect(160, 271, 9, 9)
rect(160, 280, 9, 9)
rect(160, 289, 9, 9)
//cord - uper right
rect(251, 235, 9, 9);
rect(251, 244, 9, 9);
rect(251, 244, 9, 9);
rect(251, 253, 9, 9)
rect(251, 262, 9, 9)
rect(251, 271, 9, 9)
rect(251, 280, 9, 9)
rect(251, 289, 9, 9);
//sphere(282,370,8,8);
//cord - other part
fill(80, 220, 100);
rect(156, 298, 15, 25);
rect(247, 298, 15, 25);
//flower1
fill(230, 230, 152);
strokeWeight(0.01);
translate(40, 90);
for (let i = 0; i < 10; i++) {
ellipse(0, 10, 8, 30);
// noStroke();
rotate(PI / 5);
}
fill(244, 164, 96);
ellipse(0, 1, 16, 15);
//flower2
fill(241, 58, 162);
strokeWeight(0.01);
translate(40, 90);
for (let i = 0; i < 10; i++) {
ellipse(0, 10, 8, 30);
// noStroke();
rotate(PI / 5);
}
fill(244, 164, 96);
ellipse(0, 1, 16, 15);
//flower3
fill(230, 230, 152);
strokeWeight(0.01);
translate(230, 160);
for (let i = 0; i < 10; i++) {
ellipse(0, 5, 8, 30);
// noStroke();
rotate(PI / 5);
}
//flower4
fill(244, 164, 96);
ellipse(0, 1, 16, 15);
//flower4
fill(241, 58, 162);
strokeWeight(0.01);
translate(70, -200);
for (let i = 0; i < 10; i++) {
ellipse(0, 15, 8, 30);
// noStroke();
rotate(PI / 5);
}
fill(244, 164, 96);
ellipse(0, 1, 16, 15);
fill(244, 164, 96);
ellipse(0, 1, 16, 15);
//flower4
fill(255, 97, 0);
strokeWeight(0.01);
translate(-60, 90);
for (let i = 0; i < 10; i++) {
ellipse(0, 20, 8, 30);
// noStroke();
rotate(PI / 5);
}
fill(244, 164, 96);
ellipse(0, 1, 16, 15);
//flower5
fill(255, 97, 0);
strokeWeight(0.01);
translate(-200, 170);
for (let i = 0; i < 10; i++) {
ellipse(0, 16, 8, 30);
// noStroke();
rotate(PI / 5);
}
fill(244, 164, 96);
ellipse(0, 1, 16, 15);
}