I just removed the stroke(0) ... also did a version with strokeWeight in draw area.
worked when I tested it, tried changing strokeWeight from 6 to 3. appreciating the resemblance to Lewitt!
here is the code.
float margin = 150, a, b;
void setup() {
size(700, 700, P3D);
smooth();
strokeWeight(6);
fill(240);
}
void draw() {
background(0);
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
pushMatrix();
translate(margin+100*i, (margin+10)+95*j, 0 );
b = pow(abs(sin(a)), 5);
if ( (i + j)% 2 == 0 ) {
rotateY( map( sin(a)*b, -1, 1, 10.0, 10.5) );
} else if ( (i + j)% 2 == 1 ) {
rotateY( map( sin(a)*b, -1, 1, 10.5, 10.0) );
}
stroke(0);
box(95, 95, 100);
popMatrix();
} // end 1st for
} // end 2nd for
a = a + 0.03;
}
Hey Noah,
thanks, but the problem is with it not working in OpenProcessing.org , which runs on ProcessingJS and that's a bit different than Processing itself... That's why i posted it in the JavaScript Mode sub-forum.
Answers
Does anyone have suggestions?
I just removed the stroke(0) ... also did a version with strokeWeight in draw area. worked when I tested it, tried changing strokeWeight from 6 to 3. appreciating the resemblance to Lewitt! here is the code.
Hey Noah, thanks, but the problem is with it not working in OpenProcessing.org , which runs on ProcessingJS and that's a bit different than Processing itself... That's why i posted it in the JavaScript Mode sub-forum.