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.
IndexProgramming Questions & HelpSyntax Questions › 'black holes' in curve vertext shape
Page Index Toggle Pages: 1
'black holes' in curve vertext shape (Read 283 times)
'black holes' in curve vertext shape
Mar 21st, 2006, 8:21am
 
Hi all,

I have been looking at the curves in the curveVertex, and now I want to set the vertex points with a random generator. Unfortunately that makes the curvevertex animate so that the shape sometimes has black holes in it. it is probably something about front side and back side - if the shape is drawn counterclock

How do I avoid the shape to be drawn clockwise with random numbers? Is there a "don't show the backside of the curveVertex"?


beginShape(POLYGON);
curveVertex(84,  91);
curveVertex(50,  50);
curveVertex(68,  19);
curveVertex(21,  17);
curveVertex(50, 50);
curveVertex(32, 100);
endShape();

Thank you for your help!

annemarie
Page Index Toggle Pages: 1