This file contains hidden or 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
void setup() { | |
size(200, 200); | |
background(100); | |
stroke(255); | |
ellipse(50, 50, 25, 25); | |
println("hello web!"); | |
} |
This file contains hidden or 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
imgur(){ $*|convert label:@- png:-|curl -F "image=@-" -F "key=1913b4ac473c692372d108209958fd15" | |
http://api.imgur.com/2/upload.xml|grep -Eo "<original>(.)*</original>" | |
| grep -Eo "http://i.imgur.com/[^<]*";} |
This file contains hidden or 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
Point current; | |
ArrayList<Point> snowflake; | |
boolean newSnow; | |
int newtimer; | |
boolean recording; | |
void setup() { | |
recording = false; | |
size(720, 720); | |
current = new Point(new PVector(height/2-100, 0)); |
This file contains hidden or 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
boolean recording = false; | |
ArrayList<Pendulum> pendulums; | |
int frame; | |
float time; | |
void setup(){ | |
size(720, 720, P3D); | |
pendulums = new ArrayList<Pendulum>(); | |
pendulums.add(new Pendulum(0, 0, 0, 150, PI/64, PI/32)); | |
pendulums.add(new Pendulum(pendulums.get(pendulums.size()-1), 75, PI/64, PI/128)); |
This file contains hidden or 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
boolean recording = false; | |
int frame = 1; | |
float theta = 0; | |
float phi = 0; | |
float time = 0; | |
float r = 50; | |
int cols = 5; | |
int rows = 5; | |
Lissajou[][] curves; |
This file contains hidden or 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
boolean recording = false; | |
int frame = 1; | |
float time = -PI/2; | |
float c = 10; | |
void setup(){ | |
size(720, 720, P2D); | |
} | |
void draw(){ |
This file contains hidden or 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
boolean recording = false; | |
float time = 0; | |
int frame = 1; | |
void setup(){ | |
size(600, 600, P2D); | |
} | |
void draw(){ | |
if (time<=TWO_PI || !recording){ |
This file contains hidden or 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
boolean recording = true; | |
int frame = 1; | |
float time = 0; | |
int lines = 50; | |
float circles = 10; | |
float speed = 0.01; | |
void setup(){ | |
size(600, 600, P3D); | |
} |
This file contains hidden or 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 time = 0; | |
int frame = 1; | |
boolean record = false; | |
Cube cube; | |
void setup(){ | |
size(600, 600, P3D); | |
cube = new Cube(new PVector(0,0,0), 150); | |
} |
This file contains hidden or 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
ArrayList<Way> ways = new ArrayList<Way>(); | |
int cols = 10; | |
int rows = 10; | |
int gaps = 30; | |
void setup() { | |
size(600, 600, P3D); | |
float cw = (width-gaps*2)/cols; | |
float ch = (height-gaps*2)/rows; | |
for (int i = 0; i < cols; i++) { |
NewerOlder