Sample code on IM site fails
Posted: 2007-07-26T00:20:48-07:00
Hi there,
In trying the following code, I get an "unable to parse 'aa' error".
convert -size 100x100 xc: -fx 'aa=atan2(j-h/2+.5,i-w/2+.5)/pi/2; aa>0 ? aa : aa+1' hue_angular.png
convert -size 100x100 xc: -fx 'xx=i/w-.5; yy=j/h-.5; rr=sqrt(xx*xx+yy*yy); rr*2' luminence_radial.png
Can someone please post the correct code that will work?
Thanks!
In trying the following code, I get an "unable to parse 'aa' error".
convert -size 100x100 xc: -fx 'aa=atan2(j-h/2+.5,i-w/2+.5)/pi/2; aa>0 ? aa : aa+1' hue_angular.png
convert -size 100x100 xc: -fx 'xx=i/w-.5; yy=j/h-.5; rr=sqrt(xx*xx+yy*yy); rr*2' luminence_radial.png
Can someone please post the correct code that will work?
Thanks!