Code to draw a filled polygon

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

Craig H. Nisbet(Posted 2003) [#1]
Any know how, or have code to write code to draw flled n sided polygon?


EOF(Posted 2003) [#2]
Don't know if this will help:

Peters TOOD 2D drawing system


PRJ(Posted 2003) [#3]
Take a look at my b2d 3d engine:

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


Difference(Posted 2003) [#4]
@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.


PRJ(Posted 2003) [#5]
http://www.stud.ntnu.no/~paulrene/blitzbasic/3d_scr.zip


Andy_A(Posted 2003) [#6]
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|