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 |
Finish of the "E".
Change so that the are 3 rows of 4 half-bricks.
There should be one half-brick, then two, then three, four and five.
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
h(...)m(...)h()row h(...) m(...) 0 1 4 1 2 3 2 3 2 3 4 1 4 5 0
Draw the framed triangle as shown.
We must calculate the number of spaces to miss then the number of bricks to draw.
row m(...) b(...) 0 4 1 1 3 3 2 2 5 3 1 7 4 0 9
In row 0: miss 4, draw 1.
In row 1: miss 3, draw 3.
In row 2: miss 2, draw 5.
...