Quote:
Originally Posted by Emulgator
Code:
# x and y allow to set the center of the aberration circle.
# It defaults to the center of the image.
#
## Emulgator: The latter is not true, since width and height have not been handed over as function parameters.
|
Huh? The width and height are got from the clip itself:
Code:
c= (IsRGB(clip)) ? clip : ConvertToRGB(clip)
w= c.Width()
w2= round(w*0.5)
h= c.Height()
h2= round(h*0.5)
xi= default(x,w*0.5)
xi= (xi<0)?0:xi
xi= (xi>=w)?w-1:xi
yi= default(y,h*0.5)