Stars Function
This macro takes the incoming image, Sets the alpha to 1, and then Crops the image to its own size to make sure beyond the frame has an alpha of 0. Then it takes the image, shrinks it down by the scale amount, pans it the radius amount, making several copies radially, as defined by nBranch. It will re-iteratively make more copies within itself by increasing levels. You end up with nBranch to the levels power of copies, meaning if you have 10 nBranch and a level of 3, you have 1000 image copies. This is included as an example of using both re-iterative macros, and of using diffierent looping structures in the script. Read the Script Manual for more information on looping. Synopsis image Stars(image, float radius, float scale, int nBranch, int levels ); Script image = Stars( image, radius, scale, nBranch, levels ); Command Line shake -stars radius scale nBranch levels
|