Tutorial/Bricks/Repeats
From Progzoo
We can specify the number of bricks to be drawn.
| Command | Meaning |
|---|---|
| b(3) | Draw three long bricks |
| h(3) | Draw three half bricks |
| m(3) | Leave three half brick spaces |
| r(3) | Start a new row three times |
Making an E
Rectangle
[Font]
[Default]
[Show]
[Resize]
[History]
[Profile]
Triangle
[Font]
[Default]
[Show]
[Resize]
[History]
[Profile]
Triangle II
The triangle starts with a row of zero half-bricks. The initial row of 6 is simply so that we can see where the triangle starts.
In each row we must
- draw some bricks
h(...) - miss some spaces
m(...) - draw one brick
h()
In row 1 we need 2 brick then we miss 3 then draw 1.
We must calculate the number of bricks to draw and the number to miss.
row h m 0 1 4 1 2 3 2 3 2 3 4 1 4 5 0
Draw the framed triangle as shown.
[Font]
[Default]
[Show]
[Resize]
[History]
[Profile]




