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
// I think there's a bug in here | |
float magnitude = 0; | |
float baseAngle = 0; | |
int lineSpacer = 4; | |
int yOffset = 80; | |
float cx; | |
float cy; | |
float newcx; |
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.*; // Import PDF code | |
void setup() { | |
size(600, 600); | |
noLoop(); // Run the draw() only once | |
} | |
void draw() { | |
beginRecord(PDF, "line.pdf"); // Start writing to PDF | |
// START PATTERN |
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.*; // Import PDF code | |
boolean recordPDF = false; | |
int count = 0; | |
void setup() { | |
size(600, 600); | |
} | |
void draw() { |
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
float[] latentspace; | |
String s = "RandGen_20180904-201026_00036"; // JSON file name | |
void setup() { | |
size(1000, 100); | |
colorMode(HSB, 360, 100, 100); | |
loadData(); | |
int w = 10; | |
int h = 100; | |
for (int i = 0; i < latentspace.length; i++) { |
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
float[] latentspace; | |
String s = "RandGen_20180904-201026_00036"; // JSON file name | |
void setup() { | |
size(1000, 100); | |
loadData(); | |
int w = 10; | |
int h = 100; | |
for (int i = 0; i < latentspace.length; i++) { | |
float g = map(latentspace[i], -1, 1, 0, 255); |
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
Big Picture | |
SCI-Arc VS 4201 01 | |
Spring 2018 | |
Instructors | |
Ryan Tyler Martinez | |
Casey Reas | |
Course Meetings: Thursdays 10:00-1:00PM, 2:00-5:00pm PC Lab North |
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 gab.opencv.*; | |
import processing.video.*; | |
import java.awt.*; | |
Capture video; | |
OpenCV opencv; | |
void setup() { | |
size(640, 480); | |
video = new Capture(this, width, height); |
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
int gap = 20; | |
void setup() { | |
size(1000, 1000); | |
strokeWeight(4); | |
strokeCap(SQUARE); | |
frameRate(0.5); | |
} | |
void draw() { |
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
/* | |
PROCESSINGJS.COM HEADER ANIMATION | |
MIT License - F1lT3R/Hyper-Metrix | |
Modifed by Casey Reas, 7 Nov 2013 | |
Native Processing Compatible | |
*/ | |
// Set number of circles | |
int count = 90; | |
// Set maximum and minimum circle size |
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
/** | |
PRINT PAPER PROCESS: MARBLING AND TECHNOLOGY | |
23 FEB 2013, HAMMER MUSEUM | |
UCLA ARTS SOFTWARE STUDIO <http://software.arts.ucla.edu> | |
(Based on code in Dan Shiffman's Nature of Code <http://natureofcode.com/>) | |
Operate the program with the mouse, keyboard, or modify the code. | |
Click to draw a new field |
NewerOlder