[jQuery] Re: bresenham algorithm

2008-12-07 Thread Dirceu Barquette
P.S: at w3schools.com: *"Note:* The tag is only a container for graphics, you must use a script to actually paint graphics." Thanks 2008/12/7 Dirceu Barquette <[EMAIL PROTECTED]> > (sorry my english...) > > Hi, > You are right about your explain. But you can see at > isabeladraw.sourceforge

[jQuery] Re: bresenham algorithm

2008-12-07 Thread Dirceu Barquette
(sorry my english...) Hi, You are right about your explain. But you can see at isabeladraw.sourceforge.net what I've been developing. In this implements the app build 1px div per div. This is very slow!! But for the next version (you can see at http://calango.barquettenet.net/~dirceu/isabela/jquer

[jQuery] Re: bresenham algorithm

2008-12-06 Thread Richard D. Worth
The best way is using canvas. It works in all modern browsers. Other than that, if you really must do it with dom elements, the biggest single improvement you can make to your code is to do DOM manipulation once, up front. Add a bunch of divs (enough for the longest line you would draw) and keep re