- size(1500, 1500);
- background(80, 80, 255);
- float LHx = width*.33;
- float LHy = height*0.21;
- float BH = height*0.4 ;
- float BW = width*0.15 ;
- float LHxA = width*0.48 ;
- float LHyB = height*0.55;
- //Lighthousecap
- fill(150, 0, 1);
- rect((LHx*1.1), (LHy-(height*.06)), (width/15), (width/15), 30, 30, 0, 0);
- fill(200, 200, 0);
- rect(width*.375, LHy*.8, 60, 40);
- //lighthousebody
- fill(250, 250, 250);
- rect(LHx, LHy, BW, BH, 30);
- //stripes
- fill(250, 0, 0);
- //topstripe
- beginShape();
- vertex(LHx,(LHy+(height*.03)));
- vertex(LHx,(LHy+(height*.07)));
- vertex(LHxA,(LHy+(height*.09)));
- vertex(LHxA,(LHy+(height*.05)));
- endShape();
- //midstripe
- beginShape();
- vertex(LHx,(LHy+(height*.15)));
- vertex(LHx,(LHy+(height*.19)));
- vertex(LHxA,(LHy+(height*.21)));
- vertex(LHxA,(LHy+(height*.17)));
- endShape();
- //lowstripe
- beginShape();
- vertex(LHx,(LHy+(height*.27)));
- vertex(LHx,(LHy+(height*.31)));
- vertex(LHxA,(LHy+(height*.33)));
- vertex(LHxA,(LHy+(height*.29)));
- endShape();
- fill(150, 150, 0);
- //island
- ellipse(width*.42, height*.67, width*0.8, height*.16);
- fill(250, 200, 0);
- //beach
- triangle(1000 , 905, 1200, 1200, 1400, 1000);
- //moon
- fill(250, 250, 0);
- ellipse(1200, 100, 100, 110);
- //beam
- triangle(height*.43, (LHy-(height*.04)), width, height*.25, width, (height/7));
- //cresent moon
- fill(80, 80, 255);
- noStroke();
- ellipse(1220, 100, 100, 110);