polygon-circle ( n diameter -- vertices )


Vocabulary
ui.pens.polygon

Inputs
nan integer
diametera real


Outputs
verticesa matrix


Word description
Approximates the vertices of a circle as a polygon with n amount of points.
USING: sequences math.vectors ui.gadgets.grids ui.gadgets.panes ui.theme ; 9 <iota> 3 v+n [ 20 polygon-circle details-color swap <polygon-gadget> ] map 1array <grid> gadget.


Definition