Size of display works in JAVA; not in JavaScript
>>>>>>>>>>>>>>>>>>>>>>>>>>
void setup() {
frameRate(60);
//new for me to use
size(displayWidth, displayHeight);
background(random(255),random(123),random(255));
}
void draw() {
smooth();
strokeWeight(random(50));
fill(random(255), random(255), random(255),random(255));
translate(width, height);
if (mousePressed == true) {
rotate(radians(mouseX/2));
rect(60, 60, 50, 50);
}
else {
stroke(random(255), random(255), random(255),random(255));
strokeWeight(random(50));
}
stroke(random(255), random(255), random(255),random(255));
rect(mouseX, mouseY, mouseX, mouseX);
}
Peter Terezakis
ITP, Tisch School of the Arts
New York City