Open main menu

CDOT Wiki β

Changes

Processingjs paper

21 bytes added, 16:26, 6 January 2011
DOM Integration?? (need a better header)
==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 Processing language (also known as P5) 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. In order to run processing code in a web page it the Java code has to be completely converted into JavaScript. While syntactically JavaScript and Java are fairly similar, there are some fundamental differences that made this conversion challenging. Each sketch that uses processing
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.