RGrad

Function
This function generates a radial gradation. You can control the falloff to make circles as well. To do a simple ramp, use Ramp. To do a 4-corner gradation, use Grad.

Parameters
Type
Defaults
Function
width
int
GetDefaultWidth() width of the image
height
int
GetDefaultHeight() height of the image
bytes
int
1 bit depth, 1, 2, or 4 bytes/channel
x,yCenter
float
width/2, height/2 The mid-points of the circle
aspectRatio
float
defaultApectRatio The aspectRatio of the pixels
radius
float
min(width,height)/4 The non-blurred radius of the center
falloffRadius
float
min(width,height)/4 The blurred edge radius, meaning the total width of the circle is radius+falloffRadius.
falloff
float
.5 The mid point, percentage wise, of the falloff. 0 or 1 equals a hard-edge circle, with .5 being a smooth ramp
red, green, blue, alpha, depthCenter
float
1,1,1,1,0 The values of the center area
red, green, blue, alpha, depthEdge
float
0,0,0,0,0 The values of the image edge.


Synopsis

image RGrad( 
  int width, 
  int height, 
  int bytes, 
  float xCenter,
  float yCenter,
  float aspectRatio,
  float radius,
  float falloffRadius,
  float falloff,
  float redCenter,
  float greenCenter,
  float blueCenter,
  float alphaCenter,
  float depthCenter,
  float redEdge,
  float greenEdge,
  float blueEdge,
  float alphaEdge,
  float depthEdge
);


Script

image = RGrad( width, height, bytes, etc...); 


Command Line

shake -rgrad width height bytes etc...

See Also
Rand, Grad, Ramp, Black, Checker, ColorWheel