Well, it's time for a new release! These are the improvements:
- New MARGINS directive for page's margins
- New GAP directive for inserting space between cards
- Transparent flag for FONT directive
- Parameter for inner color in RECTANGLE, ELLIPSE and TRIANGLE directives
- Parameter for empty shape in RECTANGLE, ELLIPSE and TRIANGLE directives
- Multi-line commands, using { and }
- Evaluate expression in text, using { and }
- Card number in text expression, using §
- Test for free disk space before building deck
- Fixed bug in page orientation
- Fixed bug in transparent images
Maybe tomorrow I'll post some example for the more obscure features...
An example with transparent background for text (for a shadow effect):
FONT=arial,28,"B","#808080"
TEXT="2-4","WEREWOLF",0.1,3.1,6,3,"center"
FONT=arial,28,"BT","#FF0000"
TEXT="2-4","WEREWOLF",0,3,6,3,"center"
The first TEXT is a bit on the left and down (0.1 cm), the second FONT has a "T" flag for transparent background.
Useful for writing long text sequences (or other commands) on multiple lines:
{TEXT="1-10",
"alpha|
bravo|
charlie|
delta|
echo",
0,0,6,9,"center","center"}
Not very useful (see below):
TEXT="1-10","{1+1}",0,0,6,9,"center","center"
Prints a "2" on all cards.
More useful:
TEXT="1-10","Player {§}",0,0,6,9,"center","center"
Prints "Player 1" on 1st card, "Player 2" on 2nd card, and so on...