Function
The
Ramp 360° function generates a linear gradation on the
screen. This image generator is the same as the original
Ramp but gives you the extra option of changing the angle
of the ramp. The plug-in always calculates the resulting
ramp, depending on the angle and image size. This feature
is very useful while creating a matte which is not only
horizonal or vertical.
Parameters
|
Type
|
Defaults
|
Function
|
angle |
float
|
45 |
orientation
in degree (-360
to +360)
|
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 |
center |
float
|
.5 |
The
mid-point of the gradation. |
red1,
green1, blue1, alpha1, depth1 |
float
|
0,
0, 0, 1, 0
|
color1
values of red, green, blue, alpha, and Z channels. |
red2,
green2, blue2, alpha2, depth2 |
float
|
1,
1, 1, 1, 0
|
color2
values of red, green, blue, alpha, and Z channels. |
inPoint |
int
|
0
|
only
while its amount differs from the outPoint, it defines
the in point of the ramp clip. |
outPoint |
int
|
0
|
only
while its amount differs from the inPoint, it defines
the out point of the ramp clip. |
Synopsis
image
Ramp360(
float angle,
int width,
int height,
int bytes,
float center,
float red1,
float green1,
float blue1,
float alpha1,
float depth1,
float red2,
float green2,
float blue2,
float alpha2,
float depth2,
int inPoint,
int outPoint
);
Script
image
= Ramp360( angle, width, height, bytes, etc... );
Command
Line (Terminal)
shake
-ramp360 angle width height bytes etc...
Tip: you can get the names of the available parameters
by typing: shake -help ramp360
Examples
(Terminal)
shake
-ramp360
130 1920 1080 2 0.8
- creates a new ramp with the pixel size of 1920 x 1080.
The ramp angle is 130 degrees, the pixel depth is
16 bits and the ramp center is at 0.8.
The preset values will be used for the other
parameters.
Example
(Shake's Command Line)
-ramp360
130
|