理系学生日記

おまえはいつまで学生気分なのか

問題2-51 (2.2.4 Example: A Picture Language)

こっちでも、

(define (below painter1 painter2)
  (let ((split-point (make-vect 0.0 0.5)))
    (let ((paint-top
	   (transform-painter painter1
			      split-point
			      (make-vect 1.0 0.5)
			      (make-vect 0.0 1.0)))
	  (paint-bottom
	   (transform-painter painter2
			      (make-vect 0.0 0.0)
			      (make-vect 1.0 0.0)
			      split-point)))
      (lambda (frame)
	(paint-top frame)
	(paint-bottom frame)))))

こっちでも

(define (below painter painter)
  (rotate270 (beside (rotate90 painter) (rotate90 painter))))

上下kiririmode。