I saw the canvas tag in HTML 5.0 which was interesting because I had been looking for this sort of a tag when I was writing the code for my graphics display for my author WEB site. Because I didn't have this tag, I had to write a CGI program which generated the graphic, and, since panning and scaling is allowed, the page had to be reloaded for each click. On a high speed line this is an annoyance, on a dial-up line this would make the WEB page unworkable (and there are still some dial-up lines).
If I had had the canvas tag, the information needed to draw the page could be down loaded, and the image drawn and scaled locally. I did this for a demonstration (which has never been presented). (This site will use the canvas tag if the browser supports it and the user requests it. If the browser does not support the canvas tag, or the user request not to [see the upper left hand corner] then a CGI program generates the same thing. Internet Explorer does not support the canvas tag to my knowledge, although firefox 3.0 does.) I was interested in something like the canvas tag so that I could make the download faster, and the scaling would be instantaneous.
In the demonstration I mentioned above, the CGI program was required to draw the image in the case where the canvas tag didn't exist. Therefore, I decided to write a graphics package for the CGI program that mimicked the capabilities of the canvas tag as much as possible so that writing the CGI program would not require me to start from scratch.
This library is the result. Most of the classes have been set up to mimic exactly what the canvas uses.
This library is not finished by any means. I will work on it as time and energy allow. Also, if I need to complete parts of it to satisfy some job, it could be finished quite rapidly.
The classes are:
©2008, Baldwin Computer Science
About us | Legal | Careers | Contact us | Home4