उदाहरण शब्द

शब्द

text() फ़ंक्शन का उपयोग कैनवास में टेक्स्ट डालने के लिए किया जाता है।

आप loadFont() और fontSize() फ़ंक्शन का उपयोग करके फ़ॉन्ट और टेक्स्ट का आकार बदल सकते हैं।

टेक्स्ट को textAlign() फ़ंक्शन के साथ बाएं, केंद्र या दाएं संरेखित किया जा सकता है, और, आकृतियों की तरह, टेक्स्ट को fill() से रंगीन किया जा सकता है।

Creative Commons BY-NC-SA license badge

शब्द: Revised by Kasey Lichtlyter. 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, pre-2023 code. You can suggest improvements by contributing to the current website!