Facebook
From Sani SAHIROU, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 70
  1. // Setup the window
  2. size(550, 400);
  3. background(240);  // light gray
  4.  
  5. // Drawing the hut
  6.  
  7. // Top in dark gray
  8. fill(153);
  9. triangle(275, 50, 350, 200, 200, 200);
  10.  
  11. // The bottom in clay color
  12. fill(189, 127, 92);
  13. rect(200, 200, 150, 100);
  14.  
  15. // The white door
  16. fill(255);
  17. rect(255, 250, 40, 50);
  18.  
  19. // Windows in blue
  20. fill(66, 128, 163);
  21. rect(215, 215, 20, 20);
  22. rect(315, 215, 20, 20);
  23.  
  24. // Landscapes (black lines)
  25. line(50, 300, 200, 300);
  26. line(350, 300, 500, 300);
  27.  
  28. noFill();