インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

translate()

   
Examples  
translate(30, 20); 
rect(0, 0, 55, 55); 
translate(30, 20, -50); 
rect(0, 0, 55, 55); 
translate(30, 20); 
rect(0, 0, 55, 55); 
translate(14, 14); 
rect(0, 0, 55, 55); 
Description  

物体がスペースを動く量を定める。xパラメータは左/右の移動、yパラメータは上/下の移動を決定する。そして、zパラメータはスクリーンの前方/後方の移動を決める。技術的にいえば、translate()は今の変換マトリクスを(座標軸の)平行移動マトリクスによってかけ合わせる。

   
Syntax  
translate(x, y);
translate(x, y, z);
   
Parameters  
x   整数か浮動少数点数 : 左/右の移動

y   整数か浮動少数点数: 上/下の移動

z   整数か浮動少数点数: 前方/後方の移動

   
Returns   なし
   
Usage   Web & Application
   
Related   rotate()
rotateX()
rotateY()
rotateZ()
scale()
push()
pop()
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas