Merge pull request #2487 from AmnonOwed/FixMissingImports

Adding missing library import (PDF)
This commit is contained in:
Casey Reas
2014-05-01 13:37:59 -07:00
4 changed files with 9 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
// Based on code 26-04 (p. 231)
import processing.pdf.*;
int dragX, dragY, moveX, moveY;
boolean record = false;
@@ -42,4 +43,4 @@ void mouseDragged() { // Move black circle
void keyReleased() {
record = true;
}

View File

@@ -1,6 +1,7 @@
// Based on code 36-07 (p. 331)
import processing.pdf.*;
PFont f;
String s = "012345678901234567890123456789";
@@ -95,4 +96,4 @@ void draw() {
void keyPressed() {
record = true;
}
}

View File

@@ -1,6 +1,7 @@
// Based on code 43-02 (p. 409)
import processing.pdf.*;
Ring[] rings; // Declare the array
int numRings = 50;
@@ -77,4 +78,4 @@ class Ring {
ellipse(x, y, diameter, diameter);
}
}
}
}

View File

@@ -2,6 +2,8 @@
// Based on code 50-12 (p. 486)
// Requires Particle, ArrowParticle classes
import processing.pdf.*;
int num = 900;
ArrowParticle[] p = new ArrowParticle[num];
float radius = 1.2;
@@ -40,4 +42,4 @@ void mousePressed() {
record = true;
}