for those of you who have proce55ing

Apr 16, 2004 00:02

anyone want to tell me why I get figure eights? or rather, I know why I get figure eights because my method of interpolating this.curr and this.r [target R [mousepos]] is basically greater/less than....

rather, anyone want to tell me how to win?

also transient-structures re: previous hammock post is something that a lot of really serious thinkers are working on these days. check out "paraSite"

//still just swarming
float curm;
int num=43;

float cenx=.5*width;
float ceny=.5*height;

float fric=.2;

float tra=0;
int tdg=0;

bird[] birds;
BFont futura;

void setup(){

futura=loadFont("GillSans.vlw.gz");
textFont(futura,12);
textMode(CENTER_DIAMETER);

ellipseMode(CENTER_DIAMETER);
size(400,400);
birds = new bird[num];
fill(255,255,255,120);
stroke(0);
noCursor();
for(int j=0;jr)curr-=.3;

// curr+=random(-.5,.5);

this.r=float(Math.atan2(-1*dy,-1*dx));

fill(255,255,255,80);

// this.x+=6*sin(radians(r));
// this.y+=6*cos(radians(r));

// this.x=constrain(this.x,10,width-10);
// this.y=constrain(this.y,10,height-10);
this.draw();
}
}
Previous post Next post
Up