We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › bezier example seems not to work
Page Index Toggle Pages: 1
bezier example seems not to work (Read 874 times)
bezier example seems not to work
Jun 8th, 2007, 4:44pm
 
it produces a blob in Processing 0124.

http://www.processing.org/learning/examples/bezier.html
Re: bezier example seems not to work
Reply #1 - Jun 8th, 2007, 6:24pm
 
It doesn't work because the noFill() function is missing.

This modified example is working in 124.

Quote:
void setup(){
size(200, 200);
stroke(255);
smooth();
}

void draw(){
background(0);
noFill();
 for(int i=0; i<100; i+=10) {
   bezier(90-(i/2.0), 20+i, 210, 10, 220, 150, 120-(i/8.0), 150+(i/4.0));
}
}
Re: bezier example seems not to work
Reply #2 - Jul 2nd, 2007, 10:14pm
 
I've made this change. Thank you for pointing this error out.
Page Index Toggle Pages: 1