textWidth()

คำนวณและส่งกลับค่าความกว้างของอักขระหรือสตริงข้อความ

รูปแบบการใช้งาน

textWidth ( theText )

พารามิเตอร์

  • theText String: สายอักขระที่จะวัด

ค่าที่ส่งออกมา

  • Number:


[1]This document was generated from p5.js whose source code is available on github.