forked from l0stman/sicp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2.51.tex
26 lines (24 loc) · 799 Bytes
/
2.51.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\documentclass[a4paper,12pt]{article}
\usepackage{listings}
\lstset{language=Lisp}
\begin{document}
\begin{lstlisting}
(define (below painter1 painter2)
(let ((split-point (make-vect 0.0 0.5)))
(let ((paint-bottom
(transform-painter painter1
(make-vect 0.0 0.0)
split-point
(make-vect 1.0 0.0)))
(paint-top
(transform-painter painter2
split-point
(make-vect 0.0 1.0)
(make-vect 1.0 0.5))))
(lambda (frame)
(paint-bottom frame)
(paint-top frame))))))
(define (below painter1 painter2)
(rotat270 (beside painter2 painter1)))
\end{lstlisting}
\end{document}