Skip to content

Instantly share code, notes, and snippets.

View sierpinsky.pde
// using code by dave aka @beesandbombs :)
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
View radiusofcurvature.pde
//using code by dave (@beesandbombs)
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
View test3.pde
int NB_FRAMES = 40;
int w = 500;
int h = 500;
// INCREASE THIS FOR FASTER RENDERING
int scl = 1;
int cols,rows;
View echophonstyle.pde
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
View echophonstyle2.pde
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
View lizardfield.pde
class Center{
float x = random(width);
float y = random(height);
float rot = random(-10,10);
void show(){
stroke(255,0,0);
strokeWeight(3);
point(x,y);
View fieldparticles.pde
class Center{
float x = random(width);
float y = random(height);
float rot = random(-10,10);
float repulse = random(-4,2);
void show(){
stroke(255,0,0);
strokeWeight(3);
View circlepack.pde
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
View fieldparticles3.pde
class Center{
/*
float rad = height/3*sqrt(random(1));
float theta = random(TWO_PI);
float x = width/2 + rad*cos(theta);
float y = height/2 + rad*sin(theta);*/
float x = random(width);
float y = random(height);
float rot = random(-10,0);
View stripes.pde
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
else
return 1 - 0.5 * pow(2*(1 - p), g);
}
class Center{
float rad = height/3*sqrt(random(1));