Sunday, May 23, 2021

Making your own album 37

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

6.4     Additional options for boxes and frames

6.4.1     Different colours

We already learned how to change colours of texts and border frames. In this chapter we will see how we can add some colour to our boxes.
The only restriction is, that this only works for rectangular (square) boxes, with a single border frame.

Some of the commands we have encountered already, others are new, but very logic. Colour codes for frames are best placed before the command that creates the actual box.

From top to bottom level, we can add colours now :

Album-level*

COLOUR_ALBUM_BORDER (colour) : to determinate the colour of the default borders

COLOUR_ALBUM_DECORATIVE_BORDER (colour) : colour of the fantasy borders
COLOUR_ALBUM_FOOTER (colour) : colour of the footer

COLOUR_ALBUM_HEADER (colour) : colour of the header

COLOUR_ALBUM_TITLE (colour) : colour of the album title.

Page-level*

COLOUR_PAGE_RULE_H (colour) : to colour the devider lines

COLOUR_PAGE_TEXT (colour) : to colour the texts on our pages

On the level of the boxes*

COLOUR_STAMP_BORDER (colour) : to color the box frame

COLOUR_STAMP_INNER_BORDER (colour) for the inner frame (see later)
COLOUR_STAMP_BACKGROUND (colour) ** filling (background) of boxes

COLOUR_STAMP_HEADING (colour) : colours the head text above the boxes

COLOUR_STAMP_TEXT (colour) to change the colour of the text in the boxes

Remarks :

*  each of the commands above, (except colour_stamp_text) needs to be followed by the identical command with the parameters we saw earlier.
In this second command, the ‘COLOUR_’ part is omitted, and the pm’s are filled out, in stead of the (colour).
Codes remain valid unil they are put back to default (black)

** only valid for rectangular boxes with a single frame border

Open a blank programming page, and copy-paste all of the codes below :

Album-settings :

ALBUM_PAGES_SIZE (210.0 297.0)

ALBUM_PAGES_MARGINS (22.0 15.0 10.0 10.0 )
COLOUR_ALBUM_BORDER (gold)

ALBUM_PAGES_BORDER (0.60 0 0.60 0.75)

ALBUM_PAGES_SPACING (6.0 4.0)

COLOUR_ALBUM_TITLE (goldenrod)

ALBUM_PAGES_TITLE (TB 20 "My collection")

For the pages, we put some boxes and some boxes filled with an image.
The images chosen, are included in AlbumEasy 4.2.1.
We also add a devider and give it a colour as well.

Copy-paste to add the pages:

PAGE_START

PAGE_TEXT (HB 12 "\nFilling boxes")
COLOUR_PAGE_RULE_H (yellow)
PAGE_RULE_H (1.0 2.0 3.0)

ROW_START_FS (HN 8 0.1 16.0)
COLOUR_STAMP_BACKGROUND(ghostwhite)

STAMP_ADD (26.0 28.0 "Filled with \nghostwhite" "" "YT 4" "")

COLOUR_STAMP_BACKGROUND(lightgrey)

STAMP_ADD (26.0 28.0 "Filled with \nlightgrey" "" "YT 5" "")
COLOUR_STAMP_BACKGROUND(lightsteelblue)

COLOUR_STAMP_TEXT (green)

STAMP_ADD (26.0 28.0 "Filled with \nlightsteelblue" "" "YT 6" "")

COLOUR_STAMP_BACKGROUND(white)

PAGE_TEXT (HB 12 "\nImages")

ROW_START_FS (HN 8 0.1 6.0)
COLOUR_PAGE_RULE_H (yellow)

PAGE_RULE_H (1.0 2.0 3.0)

COLOUR_STAMP_BACKGROUND(white)
ALBUM_STAMP_IMG_SETTING (4.0 4.0 false)

STAMP_ADD_IMG (31.0 42.0 "stamp_images/SR_SG55.png" " " "with frame" " " )
STAMP_ADD_IMG (31.0 42.0 "stamp_images/SR_SG55.png" " " "without frame" " " NO_FRAME)

COLOUR_STAMP_TEXT (black)

#back to default
COLOUR_STAMP_BACKGROUND(lightsteelblue)

STAMP_ADD_IMG (31.0 42.0 "stamp_images/SR_SG55.png" " " "frame\nand\ncoloured background " " " )

ALBUM_STAMP_IMG_SETTING (2.0 2.0 false)
#back to default

COLOUR_STAMP_BACKGROUND(white)
#back to default

Save as Test Design 16, create the PDF, and close again afterwards.

possible usage of colours ...


 to be continued ...

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

No comments: