Apple Shake 4 User Manual
Page 819
Advertising
Chapter 27
Warping and Morphing Images
819
Expr
Value
xExpr
float xc=(x-width/2); float yc=(y-height/2);
float r=sqrt(xc*xc+yc*yc); float a=atan2(yc,xc);
float newA= a+3.141592654/2*r/200; width/2+r*cos(newA)
yExpr
float xc=(x-width/2); float yc=(y-height/2);
float r=sqrt(xc*xc+yc*yc); float a=atan2(yc,xc);
float newA= a+3.141592654/2*r/200; height/2+r*sin(newA)
Expr
Value
xExpr
float xc=(x-width/2); float yc=(y-height/2);
float r=sqrt(xc*xc+yc*yc); float newr=r+3*sin(r/2);
width/2+ newr*xc/r
yExpr
float xc=(x-width/2); float yc=(y-height/2);
float r=sqrt(xc*xc+yc*yc); float newr=r+3*sin(r/2);
height/2+ newr*yc/r
Advertising