 |
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.
|
|
|
|
|