Smooth() Quirky Behavior
in
Programming Questions
•
2 years ago
FYI, I'm running Processing 1.51 on W7 64bit.
The following code works perfectly.
Uncomment the smooth() statement and the program stops working -- no error message, no drawing. Running the program in static mode (no setup() or draw()) results in no canvas window either.
I don't know if this is peculiar to my system or my environment at the moment (I have had sketches go from failing to working just by rebooting) I do note that the Processing doc does indicate some problems with the smooth statement so perhaps this is a manifestation of another problem.
Best Regards, Jim
The following code works perfectly.
- void setup() {
size(1100,800);
background(255);
// smooth();
noLoop();
}
void draw() {
for (int x = 0; x < width; x+=4) {
for (int y = height; y > 0; y-=6) {
line(0,0, x,y);
}
}
}
Uncomment the smooth() statement and the program stops working -- no error message, no drawing. Running the program in static mode (no setup() or draw()) results in no canvas window either.
I don't know if this is peculiar to my system or my environment at the moment (I have had sketches go from failing to working just by rebooting) I do note that the Processing doc does indicate some problems with the smooth statement so perhaps this is a manifestation of another problem.
Best Regards, Jim
1