xxxxxxxxxx
76
//Portrait, inspired by the art of Kyoto Karasuma Rokuhichido
//@summary AU24 HCDE 524B E1 Digital Portrait "Fuji"
//@author Michelle Northfield - mmnorth@uw.edu
function setup() {
createCanvas(400, 500);
}
function draw() {
// background
background(35, 150, 300);
// sun
noStroke();
fill(255, 0, 0);
circle(360, 20, 330);
// mountain - snow cap - fill
fill(255, 255, 255, 200);
quad(140, 195, 150, 100, 240, 100, 250, 195);
//mountain - snow cap - void
fill(35, 150, 300);
triangle(145, 195, 165, 195, 160, 170);
triangle(165, 195, 195, 195, 180, 170);
triangle(195, 195, 225, 195, 210, 170);
triangle(225, 195, 250, 195, 235, 170);
// mountain - outline
strokeWeight(12);
stroke(255, 255, 255);
noFill();
quad(100, 510, 150, 100, 240, 100, 300, 510);
// cloud - connector - solid
noStroke();
fill(255, 255, 255);
rect(35, 360, 32, 24);
// cloud - connector - voids
fill(35, 150, 300);
circle(32, 376, 17);
circle(70, 376, 17);
// top cloud
fill(255, 255, 255);
ellipse(12, 350, 36, 36);
quad(12, 332, 115, 332, 115, 368, 12, 368);
ellipse(115, 350, 36, 36);
//top cloud - faux transparency w mountain
strokeWeight(12);
stroke(35, 150, 300);
line(121, 338, 118, 362);
// sun - faux transparency w mountain
noStroke();
fill(255, 255, 255);
triangle(245, 95, 215, 105, 245, 145);
// bottom cloud
fill(255, 255, 255);
quad(0, 382, 72, 382, 72, 418, 0, 418);
ellipse(72, 400, 36, 36);
// signature ink - artist credit Kyoto Karasuma Rokuhichido :)
fill(255, 0, 0, 110);
square(365, 465, 14);
// wooden frame
strokeWeight(20);
stroke(222, 184, 135);
noFill();
rect(0, 0, 400, 500);
}