Processing (BETA) version 135+ のリファレンスです。 旧バージョン使用者はソフトウェア内のリファレンスを参照してください。
この文書は Processing のAPIリファレンスを日本語に訳したものです。 最新の内容は 英語版 で確認して下さい。


Name

quad()

Examples
example pic
quad(38, 31, 86, 20, 69, 63, 30, 76);
Description 四角形は四辺形であり、4つの面を持つ多角形でもあります。 それは長方形と同様ですが角度は90度だけに制限されません。 最初の一組のパラメタ (x1,y1) は最初の頂点を決定します。 そして以降のパラメタの組は定義済みの図形の頂点を時計回り、または反時計回りで指定しなければなりません。
Syntax
quad(x1, y1, x2, y2, x3, y3, x4, y4)
Parameters
x1 int or float: x-coordinate of the first corner
y1 int or float: y-coordinate of the first corner
x2 int or float: x-coordinate of the second corner
y2 int or float: y-coordinate of the second corner
x3 int or float: x-coordinate of the third corner
y3 int or float: y-coordinate of the third corner
x4 int or float: x-coordinate of the fourth corner
y4 int or float: y-coordinate of the fourth corner
Usage Web & Application
Updated on July 17, 2007 09:03:28am PDT

Creative Commons License

この文書の原文はクリエイティブ・コモンズ(Creative Commons)Attribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。 このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。

© 2007 Processing.org