Function
This blurs the image radially from a center point, creating flare effects. Although
an expensive process, it is also extremely accurate. The entire image will be
blurred, based upon the range from the inner radius to the outer radius. A pixel
outside of the oRadius distance will be blurred by the oRadius
amount. A pixel inside of the iRadius amount does not get blurred. A
pixel between i- and oRadius is blurred by a percentage of its
position between the two Radius parameters. You can also use mirror to blur
past the center point, as well as use a negative amplitude to sample pixels
away from the center rather than towards the center.
Parameters
|
Type
|
Defaults
|
Function
|
x/yCenter |
float
|
width/2, height/2 | The center point of the blur. |
iRadius |
float
|
10 | The distance from the Center that contains the blur sample area. |
oRadius |
float
|
20 | The outer edge for the blur area |
aspectRatio |
float
|
1 | The aspect ratio of the pixels for anamorphic images. |
damp |
float
|
1 | A gamma value on the blur |
amplitude |
float
|
.5 | The amount of blur. This number can also be negative. |
quality |
float
|
.25 | The amount of samples. A quality of 1, the maximum, means 64 samples. |
mirror |
int
|
0 | This will consider points past the center area if your amplitude is high enough when it is turned on. |
Synopsis
image RBlur( image, float percent, float xCenter, float yCenter float iRadius, float oRadius, float aspectRatio, float damp, float amplitude, float quality, int mirror );
Script
image = RBlur( image, xCenter, yCenter, iRadius, etc....);
Command Line
shake -rblur percent xCenter yCenter iRadius etc....