Leakbali
w3 Tutorial, Web Tutorial
Register   Login
Share

Understanding Coordinates 


The fillRect method above had the parameters (0,0,150,75).

This means: Draw a 150x75 rectangle on the canvas, starting at the top left corner (0,0).

The canvas' X and Y coordinates are used to position drawings on the canvas.

Mouse over the rectangle below to see the coordinates:

  X  
Y
 
More Tutorial
  1. HTML5 - What is Canvas?
  2. HTML5 - Create a Canvas Element
  3. HTML5 - Draw With Javascript
  4. HTML5 - Understanding Coordinates

Tutorial


References

About Us

Home
About Us
Contact Us
Sitemap

Tools

Google PageRank
Alexa Rank
Keywords Density

Accounts

Register Account
Login
Valid XHTML 1.0 TransitionalValid CSS!
Web Directory


2006 - 2012 © Leakbali.com - Free Web Tutorial, Free Web Articles, Web Sharing, Source Codes, Web References