Topic awaiting preservation: Interesting drawing/animation technique (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Cold Sweden |
posted 05-11-2005 15:46
Foung a pretty cool techniuque for drawing and making animations in JavaScript, that I've never seen before. |
Paranoid (IV) Inmate From: France |
posted 05-11-2005 15:57 |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 05-11-2005 16:31
if i understood this correctly the lines are drawn because of a bug in IE? |
Paranoid (IV) Inmate From: France |
posted 05-11-2005 17:04
GRUMBLE: I beg the W3C do not states how the map areas should be displayed when they have the focus, so it's not a bug. Neither a feature in fact. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 05-11-2005 17:29
i have to admit i didnt look at your algorithm in detail. but could you tell me what algorithm you use to calculate the x and y position for each pixel? |
Paranoid (IV) Inmate From: France |
posted 05-11-2005 20:22
I simply don't compute the x and y position of each pixel. That's a waste of time since stretching a diagonal line leaning up or down can give exactly the line you want. |
Bipolar (III) Inmate From: Sweden |
posted 05-12-2005 07:30
This is why I like IE lol |
Paranoid (IV) Inmate From: USA |
posted 05-12-2005 08:14
Alas, MSIE is not very portable or compatible. At least it's fast. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 05-12-2005 15:26
ah poi, nice trick! |
Paranoid (IV) Inmate From: France |
posted 05-13-2005 00:18
GRUMBLE: You can only draw certain types of polygons that way. I've imagined a recursive method to draw any polygon, but never implemented it and doubt it could be used to render anything else than a cube or a tetrahedron in realtime. |