monk3ybutts
YaBB Newbies
Offline
Posts: 39
|
weird autoformat thing is back again...
Jan 18th, 2006, 8:09am
here's the code
blah blah blah.... top.x=((eA.x*(float)width)*scalex) + xoff; top.y= ((eA.y*(float)height)*scaley) + yoff; //top(((eA.x*(float)width)*scalex) + xoff,((eA.y*(float)height)*scaley) + yoff); } if(top.x!=0 && top.y!=0){ if((((eA.y*(float)height)*scaley) + yoff)<top.y){ top.x=((eA.x*(float)width)*scalex) + xoff; top.y= ((eA.y*(float)height)*scaley) + yoff; //top(((eA.x*(float)width)*scalex) + xoff,((eA.y*(float)height)*scaley) + yoff); } } } } fill(0); ellipse(top.x,top.y,10,10); noFill(); // Blobs if (drawBlobs) { strokeWeight(rectStrk); stroke(brectc); //rect(((b.xMin*(float)width)*scalex) + xoff, ((b.yMin*(float)height)*scaley) + yoff,(b.w*(float)width)*scalex,(b.h*(float)height)*scaley); } if(((b.w*(float)width)*scalex)*((b.h*(float)height)*scaley)>minSize){ stroke(0); rect(((b.xMin*(float)width)*scalex) + xoff+(((b.w*(float)width)*scalex)/2),(((b.yMin*(float)height)*scaley) + yoff)+(((b.h*(float)height)*scaley)/2),((b.w*(float)width)*scalex)/3,(b.h*(float )height)*scaley); // heads= expand(heads, headCount+1); // heads[headCount] = new head(((b.xMin*(float)width)*scalex) + xoff,((b.yMin*(float)height)*scaley) + yoff,(b.w*(float)width)*scalex,(b.h*(float)height)*scaley); // headCount++; } } } }
i have my cursor at the end of the line, after the last } and then i do autoformat, it gives me this
if (drawBlobs) { strokeWeight(rectStrk); stroke(brectc); //rect(((b.xMin*(float)width)*scalex) + xoff, ((b.yMin*(float)height)*scaley) + yoff,(b.w*(float)width)*scalex,(b.h*(float)height)*sc ley)
for my last lines, it replaces them with ley)
-jay
oh, i'm on 99
|