wml::des::imgbg(3) | EN Tools | wml::des::imgbg(3) |
wml::des::imgbg - Background Images
#use wml::des::imgbg <: $file = &imgbg($base, $direction, $content, $pixels, $format); :> <body ... background=<imgbg [attributes]> ...>
The usual purpose of this tag is to create a PNG or GIF image containing a background image and to expand to its filename. Its contents is specified via the "content" attribute by use of size/color pairs.
And for most flexibility when no base is specified and the variable "BGIMG_BASE" is defined (usually from within a .wmlrc file via "-DBGIMG_BASE~path/to/imgbg/dir/base") it is used. Use this feature to redirect the created images to a particular directory.
You may also use the variable "IMAGE_BASE" which defines in a single line all base names for images generated by WML.
The last two arguments are optional, only present for gradient images. In this case, a linear gradient line is drawn from color 1 to color 2, with slices different colors.
To get a background with two columns, a black one with 150 point in size and a white one which fills the rest of the page use ``"150:#000000,1200:#ffffff"''.
Ralf S. Engelschall rse@engelschall.com www.engelschall.com Denis Barbier barbier@engelschall.com
Internal: P1, P2, P3
HTML <"body"> tag.
2020-11-29 | EN Tools |