यह रंग जोड़कर आकार आदिम उदाहरण पर विस्तार करता है। background() कैनवास को एक रंग से भरता है, stroke() रेखाएं खींचने के लिए रंग सेट करता है, और fill() आकृतियों के अंदर का रंग सेट करता है। noStroke() और noFill() क्रमशः लाइन रंग और आंतरिक रंग बंद करते है।
रंगों को कई अलग-अलग तरीकों से दर्शाया जा सकता है। यह उदाहरण कई विकल्प प्रदर्शित करता ह।
रंग: Created by Caleb Foss, 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!