News for hackers. Stuff that matters.
Re:Processing ported to JavaScript by bootload on Friday May 09, 2008 @02:33AM (#185286)
"... Processing ported to JavaScript ..."

My project just got a lot more interesting. One of the things I was having trouble with is generating an image from data with severe constraints on modules & processing time. Processing.js fills the gap of PIL which I couldn't use. I'm finding more and more interesting JS modules. Take this one for instance ~ http://www.nihilogic.dk/labs/canvas2image/ Converts the canvas to a binary image.

Re:Processing ported to JavaScript by bootload on Friday May 09, 2008 @08:02AM (#185410)
"... Converts the canvas to a binary image ..."

Just realised that in fox3 right mouse click on the canvas allows you to save the image as a .png

Re:Processing ported to JavaScript by llimllib on Friday May 09, 2008 @11:00AM (#185518)
You can also save an image via the toDataUrl method of a canvas object: http://www.whatwg.org/specs/web-apps/current-work/#todataurl