Ramp

Function
This function generates a linear gradation between two edges. You can toggle the direction of the ramp either horizontally or vertically. The Ramp is, among other things, handy to analyze color-correction nodes. Attach a horizontal Ramp to the a color-correction node, and attach that to a PlotScanline. To do a radial gradation, use RGrad. To do a four-corner ramp, 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
orientation
int
0

horizontal or vertical orientation

0 = vertical orientation
1 = horizontal orientation

center
float
.5 The mid-point of the gradation.
red, green, blue, alpha, depth
float

0, 0, 0, 1, 0,
1, 1, 1, 1, 0

value of red, green, blue, alpha, and Z channels.


Synopsis

image Ramp( 
  int width, 
  int height, 
  int bytes, 
  int orientation,
  float center,
  float red1, 
  float green1,
  float blue1, 
  float alpha1, 
  float depth1,
  float red2, 
  float green2, 
  float blue2, 
  float alpha2, 
  float depth2
);


Script

image = Ramp( width, height, bytes, orientation, etc...); 


Command Line

shake -ramp width height bytes etc...

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