raphaeljs transform


【raphaeljs】
t100,100r30,100,100s2,2,100,100r45s1.5


the example line above could be read like “translate by 100, 100; 
rotate 30° around 100, 100; scale twice around 100, 100; 
rotate 45° around centre; scale 1.5 times relative to centre”


t100,100 平移X,Y
r30,100,100 绕(100, 100)旋转30度
s2,2,100,100 绕(100, 100)X、Y方向都放大两倍。(100, 100)为放大的远点
r45 绕实体本身的中心旋转45度
s1.5 以本身的中心为原点放大1.5倍 






你可能感兴趣的:(raphaeljs transform)