Open main menu

CDOT Wiki β

Changes

Processingjs paper

49 bytes added, 11:42, 6 January 2011
DOM Integration?? (need a better header)
Processing.js is more than just a Processing parser written in JavaScript. It is designed in a way that connects the processing language with web technologies such as JavaScript, the HTML5 canvas element, JQuery, and various web services such as the flickr api. Furthermore, Processing.js is built in such a way as to allow easy integration of new technologies as they emerge.
The original Processing Language (also known as P5) is Java based, and in . In order to make it work in the webto parse processing code, it has to be completely converted into JavaScript. Syntactically While syntactically JavaScript and Java are fairly similar. However, in order to make Processing work in JavaScript however, we were faced with several challenges that were
We had to dynamically parse the processing sketch. The code had to be fully object oriented. We had to provide support all native Java functions that are supported by Processing. We had to take into account the differences between working with web resources vs local resources. Furthermore, we also had to consider how we would handle some of the fundamental differences between Java and JavaScript such as typed vs typeless variables, function overloading, and variable name overloading.