I've got a problem using the web version of an interactive graphics app (created via JavaScript mode and run via processingjs).
The code below gives a minimal example. The rendered line can be moved up or down with the mouse.
When compiled in Java mode, both the transformed and untransformed versions of the sketch work perfectly (the variable 'transformMode' allows switching between versions).
When 'compiled' in JavaScript mode, however, only the untransformed version works (the line's motion in the transformed version is jerky and sometimes fails altogether).
I have run other interactive graphics sketches in a browser that use affine transforms (push/pop-Matrix), so my instinct is that the transformation variables themselves are causing the problem (xtranslate, ytranslate, xscale, yscale).
Any ideas?
(I'm using processing 2.0.1 and processing.js-1.4.1 on a Windows 7 machine. The web version has been tested using most types of html5-compliant browsers.)