EffectDiscoLights
EffectDiscoLights generates a number of multi colored light spots that
flicker and move over image. The flicker rate will be max if flick is set
to 1, and for no flicker, set to zero. For other +ve numbers flicker
occurs at lesser frequent intervals.
The lights can converge to or diverge from some spot or line, or move in random
directions.
If style=random x and y coordinates are disregarded.
The light spots size can also be varied. The slowness (speed) of movement
of spots can be varied with the parameter slow.
The scene input is first dimmed by a factor of dim so that disco light effect is seen.
RGB32 RGB24 and YV12 only are supported at this time.
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 |
Rate of flickering |
flick |
integer |
0 or more. 0 no flicker, 1 fastest |
1 |
Style of movement of lights |
style |
string |
"converge", "diverge", "random" |
"random" |
x coordinate |
x |
integer |
in frame |
mid frame. If y coord also is default random |
y coordinate |
y |
integer |
in frame |
mid frame. If x coord also is default random |
Size of light spots |
size |
string |
"small", "medium", "large"' "all" |
0 (no shading) |
slowness of light movement |
slow |
float |
more than 0.0 |
1.0 |
dimming factor |
dim |
integer |
1 to 16 |
4 |
#Usage examples:-
EffectDiscoLights(flick=1,style="diverge",x=100, y=100,spot="large",slow=0.5)
EffectDiscoLights(sf=10,ef=200,flick=1,style="conv",y=0,spot="small", dim = 1) # no dimming
EffectDiscoLights( style="random", spot="all", slow=2, dim = 8)
EffectDiscoLights()
Image with effect :