314 Appendix A
Constants and Predeclared Variables
These are the predeclared variables included in FXScript. They can be used wherever
appropriate in your scripts and do not need to be declared in the script code. You can assign
values to them as necessary in your scripts.
Highlight
Highlight(destImage,
centerPoint,
angle, width,
softness, dither,
gaussian,
foreColor,
backColor,
aspect)
Paints a specular highlight band
in the destination image buffer,
using the specified center point
and angle as the highlight line.
“Width” and “softness” define
the size of the highlight band,
and “color” specifies the color.
If the value for “dither” is true, a
random dither is applied to the
highlight gradient, making it
smoother over large areas. If
“gaussian” is true, the gradient
will have a Gaussian fall-off,
which looks more natural when
used for specular highlight, or
when two highlights are
screened together.
CircleLight
CircleLight(destImage,
centerPoint,
width, softness,
aspect, dither,
gaussian,
foreColor,
backColor)
Creates a circular highlight
outwards from “centerPoint”
RandomNoise
RandomNoise(destImage,
alphaMin,
alphaMax, redMin,
redMax, greenMin,
greenMax,
blueMin, blueMax,
makeColors)
Randomizes the color of all the
pixels in the destimage buffer,
according to the bounds set by
the min and max values for each
channel
Assert
Assert(value)
Stops the script with an error
Command Syntax Description
Kommentare zu diesen Handbüchern