実例 スモークパーティクル

スモークパーティクル

煙のパーティクルシステムデモ、Dan Shiffmanの元の に基づいています。

このコードは p5.Vector クラスを使用しており、 createVector() 関数を含んでいます。パーティクルの位置と速度を更新するためのさまざまな計算は、p5.Vectorメソッドを使用して行われます。

パーティクルシステムは クラスとして実装されており、オブジェクトの配列(クラスParticleのインスタンス)を含んでいます。

Creative Commons BY-NC-SA license badge

スモークパーティクル: Based on Dan Shiffman's example. Revised by Darren Kessner. From 2024 onwards, edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: 2023 code. You can suggest improvements by contributing to the current website!