Code to draw a filled polygon

BlitzPlus Forums/BlitzPlus Programming/Code to draw a filled polygon

Any know how, or have code to write code to draw flled n sided polygon?

Don't know if this will help:

Peters TOOD 2D drawing system

Take a look at my b2d 3d engine:

http://www.stud.ntnu.no/~paulrene/blitzbasic/3d_v3.rar

@PRJ: How is this usefull? There is no source.

@Craig: Go to the topic Syntax Error is pointing to.
There is a link to rev 0.4 of the lib.

There will be further updates along the way.

http://www.stud.ntnu.no/~paulrene/blitzbasic/3d_scr.zip

Maybe 'Fat Functions'
http://www.blitzbasic.com/codearcs/codearcs.php?code=803

'fatOval' can draw regular polygons of 3 sides to 360 sides with or without line thickness. Also includes function to draw the Super Ellipse. The super ellipse is a generalization of an oval. Using fatSuperEllipse() you can also draw regular concave polygons by changing just one parameter as well as many other shapes including rounded rectangles (or squared ovals depending how you look at it).

'Fat Functions' + Snarty's 'Fill Image' function might be a solution (don't know what your application needs to accomplish).

Cheers,

Andy

|Edit| forgot to include link |Edit|