Here is a curiosity I encountered with Processing 2 - did not test this with Processing 1.5. Take the following code and run it:
You will find that it works fine. Now change the n<273 to n<274 (or some larger number) and run the program.
On my system I get the following warning/error message:
Stroke path is too long, some bevel triangles won't be added
Clearly something is going on.But the really curious thing is this. If I set the strokeWeight to 1, no matter how long/large the loop becomes, I never see the Stroke path message. It only occurs if the stroke weight is a value larger than 1 .
Any ideas as to why this behavior?
Best Regards, Jim
- void setup() {
- size(900,600,P3D);
- smooth();
- noFill();
- background(0);
- strokeWeight(3);
- }
- void draw() {
- for (int n = 0; n<273; n++ ) {
- int r = (int)random(255);
- stroke(r);
- pushMatrix();
- translate(random(300,600),random(200,500));
- box(50,40,25);
- popMatrix();
- }
- }
You will find that it works fine. Now change the n<273 to n<274 (or some larger number) and run the program.
On my system I get the following warning/error message:
Stroke path is too long, some bevel triangles won't be added
Clearly something is going on.But the really curious thing is this. If I set the strokeWeight to 1, no matter how long/large the loop becomes, I never see the Stroke path message. It only occurs if the stroke weight is a value larger than 1 .
Any ideas as to why this behavior?
Best Regards, Jim
1