From a33ae209c2ed2e10c53520688006663a17487d78 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Mon, 2 Dec 2024 12:29:00 -0500 Subject: [PATCH] add figure 4 --- ch_1_intro.md | 2 + fig_4.svg | 267 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 269 insertions(+) create mode 100644 fig_4.svg 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! () + + + + +