mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
Merge pull request #2487 from AmnonOwed/FixMissingImports
Adding missing library import (PDF)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user