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

triangle()

   
Examples  
triangle(30, 75, 58, 20, 86, 75); 
Description  

三角形(triangle)は、3つの点によってつなげられた平面である。初めの2つのパラメータは最初の点を、真ん中の2つのパラメータは2つめの点を、最後の2つのパラメータは3つめの点を決定する

 

   
Syntax  
triangle(x1, y1, x2, y2, x3, y3); 
   
Parameters  
x1   整数か浮動少数点数: 最初の点のx-座標値

y1   整数か浮動少数点数: 最初の点のy-座標値

x2   整数か浮動少数点数: 2つめのx-座標値

y2   整数か浮動少数点数:2つめ点のy-座標値

x3   整数か浮動少数点数: 3つめ点x-座標値

y3   整数か浮動少数点数: 3つめ点のy-座標値

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