Florian Jenett
Florian Jenett
So what i do is inject the Processing API into the generated js code for that code to be able to access width / height and the others "just like...
... maybe that was not clear: your whole sketch is a class just like the one you defined. Look at the compiled js code. It's all visible there!
Like this: ``` coffeescript setup: -> size 400, 400 @s = new Square draw: -> println "#{@s.x}, #{@s.y}" class Square constructor: () -> @x = width/2 @y = height/2 ```
Hm, hm .. you are probably right. There are several aspects here that need to be covered: **readme update** --> yes totally **Processing API constants and Processing API static functions**...
Have to check … i think the newer Processing versions have modifications to the preprocessing that cause these.
Jup. That is a bug that comes from assuming there is Processing.js around it. I'll have a look later, maybe i can hotfix this …
Oh cool, will check out! Thanks!
Ok, will have a look.
Problem is in PDE, not the mode … i can fix it to allow .java tabs but not to allow having .js tabs and be able to switch to Java...