คือ ขอบเขตของคาสง่ั สคริปต์ 2) var canvas = document.getElementByID(“myCanvas”); คือ คาส่งั ท่ใี ช้ใน การอ้างถงึ อลี เิ มนทแ์ คนวาส โดยมีการเช่อื มโยงด้วย ID = “myCanvas” 3) var draw = canvas.getContext(“2d”); คือ คาส่งั ทใ่ี ช้กาหนดมิติของภาพใน ท่นี ้ีกาหนดเป็นภาพ 2 มติ ิ (2 Dimensions) 4) draw.fillStyle = “#000000”; คือ คาส่งั เติมสใี ห้แก่ภาพท่วี าด ในท่นี ้ีเติมส่ี ดา (#000000) 5) draw.fillRect(0,0,150,75); คือ ฟังก์ช่ันสาหรับวาดภาพส่ีเหล่ียม (Rectangle) ในท่นี ้ีมีการกาหนดพารามิเตอร์ (Parameters) พิกัด คือ ซ้าย=0px บน=0px ขวา=150px และ ล่าง=75" }

Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Nutthapat Keawrattanapat Download
  • 0
  • 0
เอกสารประกอบการสอน รายวิชาหลักการออกแบบเว็บ
เอกสารประกอบการสอน รายวิชาหลักการออกแบบเว็บ (Principle of Web Design)

Like this book? You can publish your book online for free in a few minutes!

Create your own flipbook
View Text Version Likes : 0
Category : All Report
  • Follow

  • Upload

  • 0

  • Embed

  • Share

เอกสารประกอบการสอน รายวิชาหลักการออกแบบเว็บ