Apple Shake 4 User Manual
Page 818
Advertising
818
Chapter 27
Warping and Morphing Images
Expr
Value
xExpr
float xc=(x-width/2); float yc=(y-height/2);
float r=sqrt(xc*xc+yc*yc); float newr=r*sin(r/100);
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*sin(r/100);
height/2+ newr*yc/r
Expr
Value
xExpr
((x/width-0.5)*sin(3.141592654*y/height)+0.5)*width
yExpr
y
Advertising