D3D_POLYGON

This command is used to draw a 2D polygon. By varying the point count, different primitive shapes can be created, three points
will create a triangle, four points a square, and five points a pentagon. The point parameter is limited to the range of a
signed integer value, this will cause no problems though as around 256 points will create a "perfect" circle. The value of this
parameter should be carefully monitored as each point increases the time needed to draw the shape.
Specifying a colour will override the colour set by D3D_COLOR.
Specifying a value of 0 for the filled parameter will draw an unfilled circle, any other value will fill the shape.
Rotation should be specified in degrees. Zero draws polygons in the same way as previous version.

SYNTAX

D3D_POLYGON X, Y, Radius, Point Count, Filled, Rotation
D3D_POLYGON X, Y, Radius, Point Count, Filled, Rotation, Colour

RELATED INFO

D3DFunc Commands Menu
Index

EXAMPLE

View Showcase Example