Facebook
From Ben Naughton, 7 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 394
  1. size(1500, 1500);
  2. background(80, 80, 255);
  3. float LHx = width*.33;
  4. float LHy = height*0.21;
  5. float BH = height*0.4 ;
  6. float BW = width*0.15  ;
  7. float LHxA = width*0.48 ;
  8. float LHyB = height*0.55;
  9.  
  10. //Lighthousecap
  11. fill(150, 0, 1);
  12. rect((LHx*1.1), (LHy-(height*.06)), (width/15), (width/15), 30, 30, 0, 0);
  13. fill(200, 200, 0);
  14. rect(width*.375, LHy*.8, 60, 40);
  15. //lighthousebody
  16. fill(250, 250, 250);
  17. rect(LHx, LHy, BW, BH, 30);
  18. //stripes
  19. fill(250, 0, 0);
  20. //topstripe
  21. beginShape();
  22. vertex(LHx,(LHy+(height*.03)));
  23. vertex(LHx,(LHy+(height*.07)));
  24. vertex(LHxA,(LHy+(height*.09)));
  25. vertex(LHxA,(LHy+(height*.05)));
  26. endShape();
  27. //midstripe
  28. beginShape();
  29. vertex(LHx,(LHy+(height*.15)));
  30. vertex(LHx,(LHy+(height*.19)));
  31. vertex(LHxA,(LHy+(height*.21)));
  32. vertex(LHxA,(LHy+(height*.17)));
  33. endShape();
  34. //lowstripe
  35. beginShape();
  36. vertex(LHx,(LHy+(height*.27)));
  37. vertex(LHx,(LHy+(height*.31)));
  38. vertex(LHxA,(LHy+(height*.33)));
  39. vertex(LHxA,(LHy+(height*.29)));
  40. endShape();
  41.  
  42. fill(150, 150, 0);
  43. //island
  44. ellipse(width*.42, height*.67, width*0.8, height*.16);
  45. fill(250, 200, 0);
  46. //beach
  47. triangle(1000 , 905, 1200, 1200, 1400, 1000);
  48. //moon
  49. fill(250, 250, 0);
  50. ellipse(1200, 100, 100, 110);
  51. //beam
  52. triangle(height*.43, (LHy-(height*.04)), width, height*.25, width, (height/7));
  53. //cresent moon
  54. fill(80, 80, 255);
  55. noStroke();
  56. ellipse(1220, 100, 100, 110);
  57.