diff --git a/ch_1_intro.md b/ch_1_intro.md index 9ed9315..571af00 100644 --- a/ch_1_intro.md +++ b/ch_1_intro.md @@ -384,6 +384,8 @@ fn demo! () -> { To see the pattern defined by `demo!`, type it: +![Differently sized boxes.](./fig_4.svg) + {{Figure 4: Differently sized boxes. Top of p. 15.}} ### Funny feelings diff --git a/fig_4.svg b/fig_4.svg new file mode 100644 index 0000000..0f194f1 --- /dev/null +++ b/fig_4.svg @@ -0,0 +1,267 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +fn box! (edge) -> { + repeat 4 { + forward! (edge) + right! (0.25) + } +} + +& A demonstration function to show off a design +& produced from multiple boxes of different sizes. +fn demo! () -> { + repeat 4 { + box! (100) + box! (98) + box! (96) + box! (75) + box! (40) + box! (35) + box! (30) + right! (0.25) + } +} + +demo! () + + + + +