LoginSignup
0
1

More than 3 years have passed since last update.

P5.js 日本語リファレンス(quad)

Last updated at Posted at 2020-08-01

このページでは「P5.js 日本語リファレンス」 の quad関数を説明します。

quad()

説明文

四角形を描画します。四角形は四辺形のポリゴンです。長方形に似ていますがエッジ間の角度は90度に制限されていません。最初のパラメータのペア (x​​1, y1) は最初の頂点を設定し、後続のペアは定義された形状を中心に時計回りまたは反時計回りに進む必要があります。 z引数は、WEBGLモードのみ機能します。

構文

quad(x1, y1, x2, y2, x3, y3, x4, y4)

quad(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4)

パラメタ

  • x1
    Number:最初の点のx座標

  • y1
    Number:最初の点のy座標

  • x2
    Number:2番目の点のx座標

  • y2
    Number:2番目の点のy座標

  • x3
    Number:3番目の点のx座標

  • y3
    Num ber:3番目の点のy座標

  • x4
    Number:4番目の点のx座標

  • y4
    Number:4番目の点のy座標

  • z1
    Number:最初の点のZ座標

  • z2
    Number:2番目の点のZ座標

  • z3
    Number:3番目の点のZ座標

  • z4
    Number:4番目の点のz座標

著作権

p5.js was created by Lauren McCarthy and is developed by a community of collaborators, with support from the Processing Foundation and NYU ITP. Identity and graphic design by Jerel Johnson.

ライセンス

Creative Commons(CC BY-NC-SA 4.0) に従います。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1