HowTo:BackgroundImg
From S2PLOT
(Difference between revisions)
Revision as of 04:43, 19 February 2008
It is simple to run an existing S2PLOT program over the top of a background image. This behaviour is completely controlled by runtime environment variables, so no modification to program code is required.
You will need a background image in TGA format. You can use the ImageMagick "convert" utility to write a TGA file from almost any bitmap format file.
Prior to running your S2PLOT program, simply set the following environment variables:
variable | meaning | sample value |
---|---|---|
S2PLOT_BGIMG | filename of background TGA image | "universe.tga" |
S2PLOT_X1 | window-fractional X coordinate (in range 0,1) of bottom left corner for S2PLOT animation | 0.2 |