We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I cannot successfully convert / run this code with processing.js:
pushMatrix( );
applyMatrix(
1, tan( radians(45) ), 0,
0, 1, 0
);
fill( 255, 0, 0 );
rect( 0, 0, 50, 50 );
popMatrix( );
Any ideas how to get this to work?
(details about this code http://forum.processing.org/two/discussion/comment/10329#Comment_10329 )
Answers
I don't think there is an equivalent version in processing.js
Their reference for applyMatrix only talks about the 3D version.
It prints out this error -> "TypeError: ec is undefined"
Funny that
applyMatrix:function(ea)
accepts 6 arguments as well:Toshimasa to the rescue: http://processing-js.lighthouseapp.com/projects/41284/tickets/2031-applymatrix-in-2d
Re: Lighthouse: Leaving a link to a site with a paywall is useless.
That is bad news that the lighthouse site is down. That was where all of the discussion for pjs was going on back when. Alas.
Here is what I have in one of my copies. I hope this is helpful: