http://creative-coding.decontextualize.com/mobile/ ">web link here
"The first is to set the width and height of the sketch’s canvas to the size of the device itself. Here’s an example sketch to illustrate:
function setup() { createCanvas(displayWidth, displayHeight);}
function draw() {background(0);fill(255);ellipse(width/2, height/2, 100, 100);}
index.html and insert the following line somewhere between and :
|