Saturday, May 8, 2021

Making your own album 28

click the 'Documents' header to see previous entries
https://rainbowstampsandcoins.blogspot.com/search/label/documents  

5.4.3.5    Trapezoids

For the next set of shapes, we need to start a new page in our album, as we reached the end of the previous page:

PAGE_START

PAGE_RULE_H (0.1 -1 8)
PAGE_TEXT_CENTRE (TB 12 "\nDifferent shapes of boxes ")

ROW_ALIGN_BOTTOM

PAGE_TEXT (HB 11 "Trapezoids")
ROW_START_FS (HN 8 0.1 6.0)

AlbumEasy 4.2.1 sees trapezoids as flattened triangles.
This means, we have to use the same commands as we needed for the (inverted) traingle, but we add a supplemental parameter. The extra parameter gives the length of the horizontal border line in the top of the (flattened) triangle or the horizontal border line at the bottom of the (flattened) inverted triangle.
A trapezoid needs the same parameters as the triangle + one for the extra side.

We copy-paste the commands for the triangles and add a 7th pm:

STAMP_ADD_TRIANGLE (32.0 30.0 "ABC" "D" "E" "F" 10.0)
STAMP_HEADING (HN 9 "New Year\n")

STAMP_ADD_TRIANGLE_INV (32.0 30.0 "ABC" "" "E" "" 10.0)
STAMP_HEADING (HN 9 "New Year\n")

STAMP_ADD_TRIANGLE (32.0 30.0 "ABC" "" "E" "" 25.0)
STAMP_HEADING (HN 9 "New Year\n")

STAMP_ADD_TRIANGLE_INV (32.0 30.0 "ABC" "D" "" "F" 25.0)
STAMP_HEADING (HN 9 "New Year\n")

Generate the PDF, and close afterwards:.

examples of trapezoids

5.4.3.6     Parallelograms

AlbumEasy 4.2.1 cannot create parallelograms (yet)

5.4.3.7     (ir)regular pentagons, irregular hexagons and octogons

AlbumEasy 4.2.1cannot create (ir)regular pentagons, irregular hexagons or octagons (yet)

5.4.3.8     Regular hexagons and octagons

Regular hexagons and octagons only require one parameter for the sides (as all sides  are equal). We don’t need a width nor a height.

The base (and top) of the polygons can be a side (Side Up - SU) or corner. (Corner Up - CU)

PAGE_RULE_H (0.1 10 8)

PAGE_TEXT (HB 11 "Regular hexagons and octagons")
ROW_ALIGN_BOTTOM

ROW_START_FS (HN 8 0.1 6.0)

STAMP_ADD_HEXAGON (32.0 SU "HEXAGON\nSIDE\nUP" " " "E" " ")
STAMP_ADD_HEXAGON (26.0 CU "HEXAGON\nCORNER\nUP" "D" " " "F")

STAMP_ADD_OCTAGON (27.0 SU "OCTAGON\nSIDE\nUP" " " "E" " ")
STAMP_ADD_OCTAGON (28.0 CU "OCTAGON\nCORNER\nUP" "D" "" "F")

Generate the PDF and close afterwards:

regular hexagons and octagons

to be continued...

previous part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-27.html
next part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-29.html

No comments: