Somehow I think everyone is curious enough to try this after a while:
So I'm trying to display 1000 prime numbers, and getting the camera to rotate around the set of blocks. But the generated image never stays. It draws once and never updates. I need fresh eyes to look at this code. Why does it do this? To test that it's just that codeblock that has the problem, a sphere was added and it rotates as it should.
int[] a;
int w,h,d;
int wsect,hsect,dsect;
int xsect,ysect,alength;
int count=0;
int ax=0;
int ay=0;
void setup(){
size(600,800,P3D);
a=new int[1000];
int b[]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,
So I can't seem to embed processing.js on hosting sites like tumblr or wordpress. The tumblr how-to does not work and the wordpress plugin isn't available for the wordpress hosting site.
The one way that seems viable is the use of bl.ocks.org and posting up sketches as gists on github, and directing users to the bl.ocks.org site, but i want to loadimage, and not too sure if there's a same site origin policy on that function.
That seems kind of hackey to me. So is there a way to get the sketches out there?
So i'm trying to find out the upper limit to the loadImage() function in javascript. Anyone have any advice for file sizes and etc? Using the trycatch is not a great idea, since you want the images to finish buffering up before displaying.
So is does the program need to sleep for a certain amount of time to determine if the load is successful?
It seems like the LoadDisplayObj example doesn't quite seem to work in chrome or firefox for the javascript version. Are there any issues with the canvas object displaying shapes?