उदाहरण धुएँ के कण

धुएँ के कण

स्मोक पार्टिकल सिस्टम डेमो, प्रसंस्करण के लिए डैन शिफमैन के मूल उदाहरण पर आधारित है। कोड का उपयोग करता है p5.Vector क्लास, जिसमें createVector() फ़ंक्शन शामिल है। कणों को अद्यतन करने के लिए विभिन्न गणनाएँ’ स्थिति और वेग p5.वेक्टर विधियों से निष्पादित किए जाते हैं। कण प्रणाली को एक वर्ग के रूप में कार्यान्वित किया जाता है, जिसमें वस्तुओं की एक सरणी होती है (वर्ग कण की)।

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!