HTML Tags
Global Attributes
Attributes
HTML Tutorial
Coords HTML Attribute
Coordinate points
Attributes
Coords
For different shapes, the coordinate values changes
-
rect:
x1, y1, x2, y2
- x1 : Top-left x coordinate of the image area
- y1 : Top-left y coordinate of the image area
- x2 : Bottom-Right x coordinate of the image area
- y2 : Bottom-Right y coordinate of the image area
-
circle:
x, y, radius
- x : x coordinate of circle's center
- y : y coordinate of circle's center
- radius : radius in pixels
-
poly:
x1, y1, x2, y2, ..., xn, yn
- x1, y1 : First point of the polgyon
- x2, y2 : Second point of the polgyon
- xn, yn : nth point of the polygon
- If first and last points are not same, Browser closes the last point with the first point