On 1/4/07, Brianna Laugher brianna.laugher@gmail.com wrote:
On 05/01/07, Tim Starling tstarling@wikimedia.org wrote:
Any comments on this before I put it live everywhere?
I feel like a total doofus, but how do you give coordinates for four corners (in rect) using four single numbers?? The order must be significant, but the documentation doesn't say what it should be. Likewise with poly, how are the numbers interpreted as coords exactly?
It's all specified in the HTML specifications: http://www.w3.org/TR/html4/struct/objects.html#h-13.6. Rectangles are determined by just two points, and pair of opposing corners, so four numbers make sense for that. More specifically: for rectangles it's left-x, top-y, right-x, bottom-y; for circles it's center-x, center-y, radius; and for polygons it's just the x, y coordinates of each point in turn. All coordinates are relative to the top left pixel, which is 0, 0.