Converting Processing to Processing.js... please help?

I can only post one image per post so here is the first one used in this sketch: