Skip to content

Commit

Permalink
resize from 640x360 to 480x240
Browse files Browse the repository at this point in the history
  • Loading branch information
shiffman committed Aug 14, 2015
1 parent 7c84330 commit 62e14e2
Show file tree
Hide file tree
Showing 115 changed files with 115 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// http://www.learningprocessing.com

// Example 1-1: stroke and fill
size(640,360);
size(480, 240);
background(255);
stroke(0);
fill(150);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// http://www.learningprocessing.com

// Example 1-2: noFill
size(640,360);
size(480, 240);
background(255);

// noFill() leaves the shape with only an outline.
Expand Down
2 changes: 1 addition & 1 deletion chp01_drawing/example_01_05_zoog/example_01_05_zoog.pde
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// http://www.learningprocessing.com

// Example 1-5: Zoog
size(640,360);
size(480, 240);
background(255);
ellipseMode(CENTER);
rectMode(CENTER);
Expand Down
2 changes: 1 addition & 1 deletion chp02_processing/example_02_01_zoog/example_02_01_zoog.pde
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// http://www.learningprocessing.com

// Example 2-1: Zoog again
size(640, 360);
size(480, 240);
background(255);
ellipseMode(CENTER);
rectMode(CENTER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class example_3_1_setupdraw extends PApplet {

public void setup() {
// Set the size of the window
size(640, 360);
size(480, 240);
}

// draw() loops continuously until you close the sketch window.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

void setup() {
// Set the size of the window
size(640, 360);
size(480, 240);
}

// draw() loops continuously until you close the sketch window.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

void setup() {
// Set the size of the window
size(640, 360);
size(480, 240);
}

// draw() loops continuously until you close the sketch window.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Example 3-2: mouseX and mouseY

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 3-3: Zoog as dynamic sketch with variation
void setup() {
size(640,360); // Set the size of the window
size(480, 240); // Set the size of the window
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 3-4: Drawing a continuous line
void setup() {
size(640, 360);
size(480, 240);
background(255);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 3-5: mousePressed and keyPressed
void setup() {
size(640, 360);
size(480, 240);
background(255);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Example 3-6: Interactive Zoog?
void setup() {
// Set the size of the window
size(640,360);
size(480, 240);
// The frame rate is set to 30 frames per second.
frameRate(30);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ int circleX = 100;
int circleY = 100;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ int circleX = 0;
int circleY = 100;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ float change = 0.5;

// Your basic setup
void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 4-5: Using system variables
void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ float x = 100;
float y = 100;

void setup() {
size(640,360);
size(480, 240);
background(255);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ float x;
float y;

void setup() {
size(640,360);
size(480, 240);
background(255);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ float eyeG;
float eyeB;

void setup() {
size(640,360); // Set the size of the window
size(480, 240); // Set the size of the window
// Feature #1. zoogX and zoogY are initialized based on the size of the window.
// Note we cannot initialize these variables before the size() function is called
// since we are using the built-in variables width and height.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ float g = 0;
float b = 0;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ float b = 0;
float g = 0;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 5-3: Rollovers
void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int w = 100;
int h = 75;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int w = 100;
int h = 75;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int x = 0;
int speed = 2;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ float c1Change = 1;
float c2Change = -1;

void setup() {
size(640, 360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int speed = 5; // speed of square
int state = 0;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ float speed = 0; // speed of square
float gravity = 0.1;

void setup() {
size(640, 360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ float yspeed = 1;


void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 6-1: Many lines

size(640,360);
size(480, 240);
background(255);
// Legs
stroke(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 6-2: Many lines with variables

size(640,360);
size(480, 240);
background(255);

// Legs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int len = 20; // Length of each line
int endLegs = 150; // Where should the lines stop?

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example 6-6: Legs with a for loop

size(640,360);
size(480, 240);
background(255);

int y = 80; // Vertical location of each line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Example 6-7: Local variables

void setup() {
size(640,360);
size(480, 240);
// x is not available! It is local to the draw() block of code.
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
int y = 0;

void setup() {
size(640,360);
size(480, 240);
background(255);
// Slowing down the frame rate so we can easily see the effect.
frameRate(5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int eyeSize = 16;
int speed = 1;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ int h = 60;
int eyeSize = 16;

void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int speed = 1;

// Setup does not change
void setup() {
size(640,360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ float h = 60;
float eyeSize = 16;

void setup() {
size(640, 360);
size(480, 240);
}

void draw() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import processing.pdf.*;


void setup() {
size(640, 360);
size(480, 240);
}

void mousePressed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Car myCar; // Declare car object as a globle variable.

void setup() {
size(640,360);
size(480, 240);
// Initialize Car object
myCar = new Car(); // Initialize car object in setup() by calling constructor.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Car myCar1;
Car myCar2; // Two objects!

void setup() {
size(640, 360);
size(480, 240);
myCar1 = new Car(color(51), 0, 100, 2); // Parameters go inside the parentheses when the object is constructed.
myCar2 = new Car(color(151), 0, 300, 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Zoog zoog;

void setup() {
size(640,360);
size(480, 240);
zoog = new Zoog(width/2,height/2,60,60,16);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Bubble b1;
Bubble b2;

void setup() {
size(640, 360);
size(480, 240);
b1 = new Bubble(64);
b2 = new Bubble(16);
}
Expand Down
Loading

0 comments on commit 62e14e2

Please sign in to comment.