Javascript drawing program
That's right, a drawing program written entirely in Javascript/DHTML. This is only a very early version. The final program is intended to be used to create "favicons", those little icons that sometimes appear in the address bar when you visit a webpage, and also in your bookmarks. The program should eventually support palette manipulation, hopefully will support image preview, and I've got an idea on how to support saving files to disk, but I'm not sure if it will work it definitely won't work.
I developed it using IE 6 and Firefox 1.0.7, both for Windows. I'd be absolutely shocked if it works in any other browser, but even so, if it doesn't work in your browser, let me know your browser version and OS.
Using it is pretty simple, select foreground and background colors with left and right click, respectively, and left or right click to set pixels to the canvas.
Update: Now saves in Mozilla.
Anyway, without further ado (and if you're viewing this through Livejournal's syndication, you'll have to go to my real blog to see it, as Livejournal doesn't let you post Javascript):
PS: only look at the source if you want to go blind.
Comments
Windows 2000, Firefox 1.6a1, works awesome. Nice stuff.
Posted by: mrlachatte | February 11, 2006 11:13 PM
Thanks. Just getting started on the icon saving now. I think I'm going to use Data URLs for that purpose, which should work perfectly, except that IE doesn't support them (typical.) For IE I'll probably end up just using a CGI script to mimic the Data URL functionality but it's a shame to get away from the program being 100% client side JavaScript :)
Posted by: Tim | February 11, 2006 11:41 PM