This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.pdf.*; | |
boolean recordFrame = false; | |
float x; | |
float diameter; | |
void setup() { | |
size(400, 600); | |
x = random(0, width); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size(600, 600); | |
background(255); | |
strokeWeight(8); | |
strokeCap(SQUARE); | |
int offsetRange = 100; | |
int rowHeight = 10; | |
for (int y = 0; y < 600; y += rowHeight) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.pdf.*; | |
void setup() { | |
size(600, 600); | |
//frameRate(1); | |
} | |
void draw() { | |
beginRecord(PDF, "Ex_07_#######.pdf"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.pdf.*; | |
color[] rgb = { | |
#FF0000, #00FF00, #0000FF | |
}; | |
//SPACING BETWEEN LINES | |
float spMin = 2; | |
float spMax = 4; | |
float strokeWidth = 0.5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Explode | |
by Daniel Shiffman. | |
(Rewritten in Python by Jonathan Feinberg.) | |
Mouse horizontal location controls breaking apart of image and | |
Maps pixels from a 2D image into 3D space. Pixel brightness controls | |
translation along z axis. | |
""" | |
NewerOlder