EffectSpotLight
EffectSpotLight function illuminates a specified circular disc area.
The illumination color can be specified and remains constant.
The spot center moves from the initial center coordinates in pixels to
the final coordinates. Dim controls the factor by which the scene is dimmed prior.
RGB32, RGB24, YUY2 and YV12 formats only 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 |
radius of illuminated disc |
radius |
integer |
8 to 1/2 of frame lesser dimension |
40 |
illuminating color |
lumen |
integer |
bbggrr format |
0x5f5f5f |
initial x coordinate of the sparkler |
initx |
integer |
within frame |
radius |
initial y coordinate of the sparkler |
inity |
integer |
within frame |
radius |
final x coordinate of the sparkler |
finalx |
integer |
within frame |
initx |
final y coordinate of the sparkler |
finaly |
integer |
within frame |
inity |
dimming factor |
dim |
integer |
1 to 16 |
4 |
#Usage examples:-
EffectSpotLight(sf=51,ef=158,lumen=$7f007f, initx=40,inity=240,finalx=700,finaly=400, dim=6)
For stationary spot position, no prior dimming
EffectSpotLight(dim=1)
#All defaults spot remains stationary at left corner
EffectSpotLight()
Image with effect :