Examples updates to 640 x 360 pixels

This commit is contained in:
Casey Reas
2011-08-05 18:26:51 +00:00
parent f1c7aabf14
commit 9b7de8d6b7
52 changed files with 295 additions and 302 deletions
+9 -7
View File
@@ -7,21 +7,23 @@
* the same pushMatrix() and popMatrix() group.
*/
float x = 50;
float y = 100;
float x, y;
float angle1 = 0.0;
float angle2 = 0.0;
float segLength = 50;
float segLength = 100;
void setup() {
size(200, 200);
size(640, 360);
smooth();
strokeWeight(20.0);
stroke(0, 100);
strokeWeight(30);
stroke(255, 160);
x = width * 0.3;
y = height * 0.5;
}
void draw() {
background(226);
background(0);
angle1 = (mouseX/float(width) - 0.5) * -PI;
angle2 = (mouseY/float(height) - 0.5) * PI;