HWimage Template Commands: General Syntax
  1. The template files consist of a number of lines.
  2. Leading and trailing white space on an input line is ignored.
  3. Comments: Two types of comments are allowed:

    Shell-style comment: starts with # (which must be the first non-white space character on the line) and ends at the input line end.
    C-style comment: starts with /* and ends with */

    Comments are ignored by HWimage.

  4. Lines consist of generally commands (A template command followed by any needed arguments). Excess arguments may generate an error.
  5. Template commands and their arguments are case insensitive unless otherwise noted.
  6. Template variables can be included as parameters on a line. They follow the naming as %%variablename%% where 'variablename' is the name of the template variable to use. The template variable name will be replaced by its value when the line is processed.
  7. A pair of curly braces { and } can delimit expressions. These expressions are fed to the perl evaluator and replaced by the result. Thus expression can be arithmetic or may use simple perl functions including int, substr, etc... Any template variables in the expression will be replaced by the actual variable's value before the expression is processed.
HWimage Template Commands: Special Types

Special types

Coordinates

Colors

A color specification (colorspec) is the keyword TRANSPARENT, a color name from the list below or has the form: model args.

Color List (These color names can be specified as the color specification):

Aqua Black Blue
Fuchsia Gray Green
Lime Maroon Navy
Olive Purple Red
Silver Teal White
Yellow

The model is the color model used; the following color models are supported at the moment:

RGB
the args should be three integers between 0 and 255 (bounds included) and specify the red, green and blue component of the color.
RGBH
the args should be three hexadecimal numbers  between 00 and FF and specify the red, green and blue component of the color.

Note: