0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

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

Last updated at Posted at 2020-08-01

このページでは[「P5.js 日本語リファレンス」] (https://qiita.com/bit0101/items/91818244dc26c767a0fe) の triangle関数を説明します。

triangle()

説明文

三角形は3つの点を結んで作成される平面です。最初の2つの引数は最初の点を設定し、2番目、3番目の引数は2番目の点を設定し, 最後の2つの引数は3番目の点を設定します。

構文

triangle(x1, y1, x2, y2, x3, y3)

パラメタ

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

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

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

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

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

  • y3
    Number:3番目の点のy座標

著作権

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
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?