View source: R/outline_shapes.R
A regular n-gon is a polygon with equal sided edges and all angles of corners are equal.
1 | ngon_edges(n_points = 10000, n_edges = 4, r = 4, cx = 0, cy = 0)
|
n_points |
number of particles to use |
n_edges |
How many edges does the shape have |
r |
how far from the center of the shape should the edges be drawn |
cx |
x coordinate of origin |
cy |
y coordinate of origin |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.