Testing processing.js and Squarespace

Good old monochrome snakey…


void setup(){
size(400, 400);

void draw(){
fill(random(0, 255));

ellipse(mouseX, mouseY, 30, 30);

… he lives!


2 thoughts on “Testing processing.js and Squarespace

  1. Hello, I’m trying to exactly that on my squarespace website. can you tell me how to that? pretty please !

  2. Hi Merate. The easiest way I found was to upload the processing.js file to your Squarespace filespace (the same as you would for a PDF or something similar. Then insert a code block into your post or page which uses HTML to call to the processing.js script. Then add another code block with your processing code, using the javascript syntax mentioned on the processing.js project page. It’s probably not the most elegant solution, but it seems to work OK for self-contained sketches.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s