Adds HTML Canvas tag as a terminal.
The <canvas> tag has native support in
* Gecko (Firefox, others),
* Webkit (Safari both OSX and Windoze),
* and emulation via a plugin in MS Internet Explorer. (homepage http://code.google.com/p/explorercanvas/\)
The HTML Canvas tag gives compact, cross-platform graphics that can be easily embedded in web pages and accessed from a diverse browsers, without SVG plugins.
For drawing text, this terminal uses vector fonts from the supplied canvastext.js, that was kindly released into the public domain by Jim Studt (that package's home is http://www.federated.com/~jim/canvastext/\)
The terminal outputs a complete HTML file containing a div that contains the drawing area.
The only options are canvas X and Y size. They default to 600 by 400.
Example: create a simple graph
set term canvas 800 600
set output "test.html"
plot [0:2*pi] sin(x) with linespoints
To view, point your browser at "test.html" in the local filesystem, or place "test.html", along with canvastext.js on your favorite webserver.
I am using a Linux build of the 2008-08-17 CVS source snapshot.