Skip to content

Instantly share code, notes, and snippets.

@rlieberman
rlieberman / gist:6f75865be36971ff88f5
Created September 17, 2014 15:24
Psychedelic Pizza
//variables for moving olives
float olive1X;
float olive1Y;
float olive2X;
float olive2Y;
float olive3X;
float olive3Y;
float olive4X;
float olive4Y;
float olive5X;
@rlieberman
rlieberman / Psychedelic Pizza
Created September 17, 2014 15:25
Psychedelic Pizza
//variables for moving olives
float olive1X;
float olive1Y;
float olive2X;
float olive2Y;
float olive3X;
float olive3Y;
float olive4X;
float olive4Y;
float olive5X;
@rlieberman
rlieberman / Pizza Pizza
Created September 17, 2014 15:28
Pizza Pizza Static Processing Sketch
size(1000, 790);
background(18, 255, 204);
//pizza shadow
noStroke();
fill(54, 158, 136);
triangle(300, 150, 900, 150, 600, 750);
ellipseMode(CENTER);
//x position of circle
float circleX = 0;
//y position of circle
float circleY = 180;
//x-speed of circle
float xspeed = 5;
//y-speed of circle
void setup () {
size (500, 500);
}
void draw () {
background (0);
float x = 0;
//x position of circle
float circleX = 0;
//y position of circle
float circleY = 180;
//x-speed of circle
float xspeed = 5;
//y-speed of circle
@rlieberman
rlieberman / gist:c28f789ef493f58a3510
Created October 1, 2014 03:21
I-Ching Functions
void setup () {
size (850, 500);
}
void draw () {
background (255);
//hexagram 1
unbrokenLine (50, 50);
void setup () {
size (850, 500);
}
void draw () {
background (255);
//hexagram 1
unbrokenLine (50, 50);
void setup () {
size (850, 500);
}
void draw () {
background (255);
//hexagram 1
Hexagram h1;
Hexagram h2;
Hexagram h3;
Hexagram h4;
Hexagram h5;
Hexagram h6;
Hexagram h7;
void setup () {
size (600, 600);