EffectRipples2
On the image in a pool area ripples are created. This is differently
formulated than EffectRipple,
and has a more pleasing liquid effect. Unlike the faster EffectRipples
this function has no restrictions about the ripple center location ,
pool coordinates except that user ensures that at least a little part
of pool is
visible at all times. The wave speed of travel, amplitude, ripple center
and pool coordinates can be defined and also varied linearly. It is to
be kept in mind that the wave travels from ripple center and so if the center
is outside pool it may be some frames before it appears in pool.
RGB32, RGB24, YUY2 and YV12 formats are supported.
Details of parameters
Description |
Name |
Type |
Limits |
Default |
clip |
|
clip |
|
none |
Effect start frame number |
sf |
Integer |
within clip |
first frame |
Effect end frame number |
ef |
Integer |
within clip |
last frame |
wave length of ripples |
lambda |
integer |
1 to 250 |
64 |
wave speed at start |
speed |
float |
0 to 100 |
5 |
x coordinate of ripple center at start |
xcoord |
integer |
none |
mid frame |
y coordinate of ripple center at start |
ycoord |
integer |
none |
mid frame |
left x coordinate of pool at start |
leftx |
integer |
none |
0 |
top y coordinate of pool at start |
topy |
integer |
none |
0 |
right x coordinate of pool at start |
rightx |
integer |
none |
frame width |
bottom y coordinate of pool at start |
boty |
integer |
none |
frame height |
x coordinate of ripple center at end |
ex |
integer |
none |
xcoord |
y coordinate of ripple center at end |
ey |
integer |
none |
ycoord |
left x coordinate of pool at end |
eleftx |
integer |
none |
leftx |
top y coordinate of pool at end |
etopy |
integer |
none |
topy |
right x coordinate of pool at end |
erightx |
integer |
none |
rightx |
bottom y coordinate of pool at end |
eboty |
integer |
none |
boty |
wave speed at end |
espeed |
float |
0 to 100 |
speed |
amplitude of wave at start |
amp |
integer |
1 to 16 |
8 |
amplitude of wave at end |
eamp |
integer |
1 to 16 |
amp |
#Usage examples:-
EffectRipples2(last,50, 150)
EffectRipples2 (last,50, 150, lambda=200)
EffectRipples2 (last,50, 150,espeed=10)
EffectRipples2 (last,50, 150,amp=1, eamp=8)
# following for a frame of w=720, h=480. typed on one line
EffectRipples2 (last,50, 150,xcoord=800, ycoord=500, leftx=400, rightx=900, ex=0, ey=0)
EffectRipples2(last,1,700,lambda=40, xcoord=800, ycoord=500,ex=0,ey=0, amp=8, eleftx=200, erightx=400,etopy=100,eboty=300)
Image with effect :