灯下 登录
计算机科学 / SICP / 2.2.4 Example: A Picture Language

Exercise 2.52 · 习题

Exercise 2.52: Make changes to the square limit
of wave shown in Figure 2.9 by working at each of the levels
described above. In particular:

Add some segments to the primitive wave painter of Exercise 2.49
(to add a smile, for example).

Change the pattern constructed by corner-split (for example, by using
only one copy of the up-split and right-split images instead of
two).

Modify the version of square-limit that uses square-of-four so as

to assemble the corners in a different pattern. (For example, you might make

the big Mr. Rogers look outward from each corner of the square.)

练习 2.52:按照上述各个层次,对图 2.9 中 wave 的方形极限进行修改。具体而言:

向练习 2.49 的基本 wave 画家添加若干线段(例如,加上一个微笑)。

改变 corner-split 所构造的图案(例如,只使用 up-split 和 right-split 图像各一份,而不是两份)。

修改使用 square-of-four 的 square-limit 版本,以不同的图案拼装四个角(例如,让大版的 Rogers 先生从正方形的每个角朝外望去)。