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

new

   
Examples  
HLine h1 = new HLine(); 
float[] speeds = new float[3]; 
float ypos; 
 
void setup() { 
  size(200, 200); 
  speeds[0] = 0.1; 
  speeds[1] = 2.0; 
  speeds[2] = 0.5; 
} 
 
void loop() { 
  ypos += speeds[int(random(3))]; 
  if (ypos > width) { 
    ypos = 0; 
  } 
  h1.update(ypos); 
} 
 
class HLine { 
  void update(float y) { 
    line(0, y, width, y); 
  } 
} 

Description   ダイナミックにオブジェクトを作る
   
Syntax  
new 
   
Usage   Web & Application
   
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas