PasteRack.org
Paste # 72124
2021-03-02 21:36:33

Fork as a new paste.

Paste viewed 14 times.


Embed:

  1. (require 2htdp/image)
  2.  
  3. (define pt (right-triangle 100 50 "solid" "purple"))
  4. (define pti (right-triangle 100 50 "solid" "transparent"))
  5. (define step1 (rotate 27 pt))
  6. step1
  7. (define step2 (flip-vertical step1))
  8. step2
  9. (define gap (square 5 "solid" "transparent"))
  10.  
  11. (define triangle-assembly (rotate-cw (above step2 gap step1)))
  12. triangle-assembly
  13.  
  14. (define base-1 (circle 90 "solid" "lightgreen"))
  15. base-1
  16. (define words (text "base" 48 "gray"))
  17. words
  18. (define base-2 (overlay words base-1))
  19. base-2
  20.  
  21. (define base-3
  22.   (crop-top base-2 15))
  23. (define base-4
  24.   (rotate 120 (crop-top (rotate -120 base-3)
  25.                         15)))
  26. (define base-5
  27.   (rotate -120 (crop-top (rotate 120 base-4)
  28.                          15)))
  29.  
  30. (define step3
  31.   (above triangle-assembly
  32.          gap gap gap
  33.          base-5))
  34.  
  35. (define step4a (rotate 120 step3))
  36. (define step4b (above triangle-assembly
  37.                       gap gap gap
  38.                       step4a))
  39. (define step5a (rotate 120 step4b))
  40. (define step5b (above triangle-assembly
  41.                       gap gap gap
  42.                       step5a))
  43.  
  44. "This is a picture of what you could reasonably do."
  45. "Notice the triangle placements are not perfect."
  46. (rotate 120 step5b)
  47.  
  48. ;; BOSS method
  49. ;; Put the first triangle assembly the way we did in class.
  50. ;; but put another invisible shape the same size on the other size of the circle to keep it balanced.
  51. ;; Measure the height of that to make an invisible circle to guide the placement of the other parts.

=>

load-handler: expected a `module` declaration in "paste 72124", but found something else

Check that paste includes #lang?