2.50 Exercise 2.50
The first, flip-horiz, is defined similarly to flip-vert, with the new origin in the bottom-right corner and the edges coming left and up from it:
(define (flip-horiz painter) (transform-painter painter (make-vect 1 0) (make-vect 0 0) (make-vect 1 1)))
The rest are defined in terms of painter transformations we already have:
(define (rotate180 painter) (flip-vert painter))
(define (rotate270 painter) (flip-horiz (rotate90 painter)))