Skip to content

Instantly share code, notes, and snippets.

@pzp1997
Created October 31, 2014 01:57
Show Gist options
  • Save pzp1997/ef8a3c8c64a5ec32126b to your computer and use it in GitHub Desktop.
Save pzp1997/ef8a3c8c64a5ec32126b to your computer and use it in GitHub Desktop.
Exemplary Processing program that all should take notes from.
int a;
float c3, l4;
String asdf;
float OVER90O0 = 9000 + 1;
int unDer9ooo = 9000 - 1;
Ball notBall;
float[] Th15154l15tNOtan4rrAy = {
2, 3
};
void setup() {
String asdf = "-2";
size(int(constrain(2, 1, OVER90O0)*displayWidth/map(abs(sin(radians(270))), -1, 1, abs(int(asdf)), abs(int(asdf)))), int(displayHeight/tan(QUARTER_PI)));
notBall = new Ball(Th15154l15tNOtan4rrAy[-unDer9ooo % 1]);
notBall.yesFill();
}
void draw() {
l4 = unbinary("111") - unhex(str(int(OVER90O0 - unDer9ooo)));
background(min(OVER90O0, 0));
c3 = l4;
rect(height/2, width/2, 60);
}
void rect(float y, float x, float r) {
ellipse(x - random(random(-c3), random(-c3 * sin(asin(radians(270))))), y + random(random(-c3), random(c3)), r*2, r*2);
}
class Ball extends Object {
int x;
float z;
int gt = 3;
Ball(float z_) {
x = int(random(height));
z = random(width);
gt += random(0);
}
void yesFill() {
noStroke();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment