0
0

P5.js 日本語リファレンス(beginGeometry / endGeometry)

Posted at

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

beginGeometry / endGeometry

説明文

beginGeometry() は図形形状情報を保持する p5.Geometry オブジェクトへ図形の追加を開始します。
endGeometry() は図形形状情報を保持する p5.Geometry オブジェクトへ図形の追加を終了します。
beginGeometry()とendGeometry()の間で複数のシェイプ(図形)を追加することで複雑な図形形状を作成することができます。

beginGeometry() と endGeometry() は、描画のパフォーマンスを向上させるのに役立ちます。たとえば、以下の(a)の方が(b)よりも高速に描画することができます。
(a)beginGeometry() と endGeometry()の間で個々のシェイプ(図形)を p5.Geometry に追加しておき、一括して繰り返し描画する
(b)個々のシェイプ(図形)を繰り返し描画する

注: beginGeometry()WebGL モードでのみ使用できます。

構文

beginGeometry()
endGeometry()

パラメタ

著作権

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