FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   smooth polygon
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: smooth polygon  (Read 296 times)
tobt


smooth polygon
« on: Jul 9th, 2004, 9:22pm »

Hello,
is there another way to draw (an fill) a bezier-spline?
I use the following code in a hi-res image and get a rough shaped polygon. Is it possible to get it smooth? Are there different drawing strategies?
 
CODE:
 
void setup(){  
  size(1000, 300);
}  
 void loop(){  
  fill(255);
  noStroke();
  smooth();
  beginShape(POLYGON);  
  bezierVertex(-500, 150);
  bezierVertex(1300, 0);
  bezierVertex(1300, 300);
  bezierVertex(-500, 150);
  endShape();  
}
 
Thanks for help.
 
Pages: 1 

« Previous topic | Next topic »